For the complete documentation index, see llms.txt. This page is also available as Markdown.

🎙️Custom Sounds for Pets (Vocalization)

🎤 Custom Sounds for Pets

Actions
Work / Not Work
Detail

Cuddle

⛔ Not work

Keeps making dog sounds

Following

⛔ Not work

Keeps making dog sounds wehn follow/running

Bump

⛔ Not work

Keeps making dog sounds

Bark while running

⛔ Not work

Keeps making dog sounds

Bark K9

✅ Work

After you use Bark K9 interaction with other player

Whine

✅ Work

Sad, hungry, thirsty, and low on health

Growl

✅ Work

Hungry and angry

Agitated

✅ Work

Playing and happy

Idle Sounds (Panting)

⛔ Not work

Keeps making dog sounds

📋 Overview

The Custom Sounds system lets you use audio files (.ogg) for pet vocalizations instead of GTA’s native sounds. Cats can meow, lions/tigers can roar, and any pet can use unique sounds. URLs are configured in anims.lua in the Vocalization section of each category (BigDog, SmallDog, Cat, BigCat). Audio is played at the pet’s position via xsound.

Perfect for:

  • 🐱 Cats with real meows (instead of no sound or dog sounds)

  • 🦁 Big cats (lion, tiger, puma, capybara) with roars/grunts

  • 🎶 Any pet with custom and realistc sounds (bark, growl, whine, etc.)


✨ Key Features

Feature

🎶 One sound per vocal type

Description

In Vocalization use customSoundBark, customSoundWhine, customSoundGrowl, customSoundAgitated, customSoundSniff, and optionally customSoundBarkSeq. If you set a custom, it takes priority; otherwise the native sound is used (when available).

Feature

❌ xsound optional

Description

If the xsound resource is not installed or not started, the system does not error: it simply does not play the custom sound and uses the native one (or nothing).

Feature

🐈‍⬛ Sound at pet position

Description

Sound is played at the pet’s position in the world (3D) using the xsound API.

Feature

🔧 Optional settings for each pet category.

Description

Inside the file public/config/anims.lua, you will find the VocalizeAnim and Vocalization options for each pet category.


🔧 How Configs and Setup Custom Sounds


Setup a Custom Sounds

1

Install (or update) dependencies

  1. Download xsound-1.1-experimental.zip (or the latest stable release)

  2. Extract the ZIP. After extracting, the folder will be named xsound-1.1-experimental (or similar).

  3. Rename the folder to exactly xsound.

  4. Place the xsound folder inside your server’s resources root folder (the same folder that contains cdev_lib, [cdev], [cdev_assets], etc.).

2

Start order in server.cfg

3

Place sound files in xsound

  1. Open the xsound folder you placed in resources/.

  2. Go into html/sounds/.

  3. Put your .ogg files in that folder (e.g. meow.ogg, lion_roar.ogg).

Example structure:

4

Configure URLs in anims.lua

  1. Open cdev_pets/public/config/anims.lua.

  2. Find the pet category you want to customize: BigDog, SmallDog, Cat, or BigCat (each has a Vocalization block).

  3. Inside Vocalization, add (or uncomment) the custom sound keys. The URL must point to the file inside xsound:

    • Format: nui://xsound/html/sounds/FILENAME.ogg

Example for Cat (meow):

Example for BigCat (lion, tiger, puma, etc.):

If you set a custom for a type (e.g. customSoundBark), that sound is used when the pet “barks” (or the corresponding action).


🔊 Vocal Radius Sound Play

❓ Frequently Asked Questions

Q: How can I play these sounds?

A: The sounds are triggered automatically based on the pet’s actions. The Bark and Sniff systems are only enabled when the pet is of type K9. If the pet is a K9, you can use the target or drawtext interaction to trigger the sound.

Q: What happens if I don’t install xsound?

A: Nothing breaks. The system checks if the xsound resource is started. If it isn’t, custom sounds are skipped and only native sounds are used (or none for cat/BigCat when they have no natives).

Q: Can I use only custom sounds and leave natives as nil?

A: Yes. For Cat and BigCat, natives are already nil. Just set the customSound* keys you want; when a custom exists, it has priority.

Q: What audio format should I use?

A: Use .ogg files in the xsound/html/sounds/ folder. The URL in the config should end in .ogg.

Q: Does the target label (Bark / Meow / Vocalize) change by category?

A: Yes. Each category has vocalizeLabelKey in Vocalization (pet_bark, pet_meow, pet_vocalize). The text shown in the target comes from the translation keys in data/languages (e.g. pet_meow = "Meow", pet_vocalize = "Vocalize").

Q: Do I need to restart the server after adding sounds?

A: After adding new .ogg files to xsound/html/sounds/ or changing anims.lua or Install xsound you need full server restart ensures xsound loads the files correctly.

Last updated