Page cover

🐢Pets V2

Documentation of IF Pets

Supported on ESX and QB servers.

SQL Structure
  • It's simple, just go into [SQL] folder and run if-pets.sql .

    • For ESX: If you're using default items structure, run esx_items.sql .

Translations

The script has a Translation system, you can create a new language if needed.

To create or edit, check shared/translations.lua

Main Config (shared/config.lua)
  • Framework: Set your Framework and core resource.

  • Target: Set your target resource and distance of it.

  • PetShops: An array containing the pet shops NPC and Blip.

  • Pets: Add/remove or edit the pets for sale.

  • Items: Create more items if you want.

Animations Config (shared/petAnimations.lua)

BE CAREFUL WITH THIS CODE

You can change(create/remove or edit) the animations of the "Big dogs, Small dogs and Cats" and edit(name, icon, category, ...) the animations that appears in the NUI (PetInteractionsAnims), take a look on the table typings.

Pet Colors Config (shared/petColors.lua)

You can change(create/remove or edit) the pet colors by model.

The native used is SetPedComponentVariation and the params are used from this config file.

Last updated

Was this helpful?