Skip to content

๐Ÿพ FX-PETS โ€‹

Advanced pet system for RedM that allows players to own, manage, and interact with animals including feeding, following, reviving, and combat behavior.


๐Ÿ“ฆ Installation โ€‹

bash
ensure fx-pets

โ€ข Place the script inside your resources folder โ€ข Add ensure fx-pets to your server.cfg โ€ข Restart your server


๐Ÿ—„๏ธ SQL Setup (VORP) โ€‹

sql
INSERT INTO items (...)
VALUES ('petbox', 'Pet Box', ...)

โ€ข Required items for pet system โ€ข Includes petbox, petfood, petrevive, petwater


๐Ÿ“ฆ Items (RSG) โ€‹

lua
petbox = { name = 'petbox', label = 'Pet Box' }

โ€ข Add items to rsg-core/shared/items.lua โ€ข Items must be usable


โš™๏ธ Basic Configuration โ€‹

lua
Config.Language = "en"
Config.MyPetsCommand = "mypets"

โ€ข Command to open pet menu โ†’ /mypets โ€ข Language system supported


๐ŸŒ Locale System โ€‹

lua
Config.Locale = {
  ["en"] = {},
  ["tr"] = {}
}

โ€ข Multi-language support โ€ข Fully customizable


๐Ÿ• Pet Ownership Settings โ€‹

lua
Config.PetOwnershipLimit = 5
Config.PetOutLimit = 2

โ€ข Limit how many pets a player can own and spawn โ€ข Set false for unlimited


๐Ÿง  Pet Stat System โ€‹

lua
Config.PetStatSettings = {
  hunger = {},
  thirst = {}
}

โ€ข Hunger & thirst system โ€ข Dynamic stat decrease


โค๏ธ Damage System โ€‹

lua
Config.PetDamageSystem = {
  enabled = true
}

โ€ข Pets take damage when starving or dehydrated โ€ข Fully configurable


๐Ÿ’Š Consumables โ€‹

lua
Config.Consumables = {
  food = { petfood = 50 },
  drink = { petwater = 50 }
}

โ€ข Feeding system โ€ข Restores hunger and thirst


๐Ÿฉบ Heal & Revive System โ€‹

lua
Config.ReviveItems = {
  ["petheal"] = {},
  ["petrevive"] = {}
}

โ€ข Heal and revive pets โ€ข Supports animations and effects


๐ŸŽฎ Pet Controls โ€‹

lua
Config.RightClickShortCut = {}

โ€ข Sit / Follow / Heal / Revive / Go Home โ€ข Fully customizable controls


๐Ÿพ Pet Commands System โ€‹

lua
Config.PetCommands = {
  ["dog"] = {}
}

โ€ข Per-pet command system โ€ข Example: follow, stay, attack


๐ŸŽญ Animations โ€‹

lua
Config.Animations = {
  ["dog"] = {}
}

โ€ข Custom animations per pet type โ€ข Includes idle, eat, sit, etc.


๐Ÿพ Pet Definitions โ€‹

lua
Config.Pets = {
  ["A_C_DogHusky_01"] = {}
}

โ€ข Defines all pets โ€ข Includes scale, behavior, abilities


lua
Config.Pets = {
  ["a_c_custom_pet"] = {
    babyScale = 0.6,
    maxScale = 1.0,
    petType = "dog",
    icon = "a_c_custom_pet",
    isPedCanAttack = true,
    canRevive = true
  }
}

โ€ข You can create custom pets by adding new entries โ€ข Each pet must have a unique model name โ€ข icon must match image file name


๐Ÿ›’ Pet Shop System โ€‹

lua
Config.PetMarket = {}

โ€ข Main pet shop configuration โ€ข Controls categories and availability


lua
Config.PetMarket = {
  ["BLACKWATER"] = {
    ["Custom"] = {
      pets = {
        ["a_c_custom_pet"] = {
          title = "Custom Pet",
          cash = 100
        }
      }
    }
  }
}

โ€ข Add custom pets into market categories โ€ข Controls how players buy pets โ€ข Supports multiple locations and categories


๐Ÿ–ผ๏ธ Pet Image Setup โ€‹

text
ui/assets/pets/a_c_custom_pet.png

โ€ข Add pet images inside ui/assets/pets โ€ข Image name must match model name โ€ข Used for UI display


๐Ÿ—บ๏ธ Market Locations โ€‹

lua
Config.Markets = {
  ["BLACKWATER"] = {}
}

โ€ข Defines NPC shop locations โ€ข Includes spawn, camera, and interaction


๐ŸŽจ UI Settings โ€‹

lua
Config.Theme = "Dark"

โ€ข Supports Light / Dark mode โ€ข Fully customizable UI


๐Ÿ”„ Growth System โ€‹

lua
Config.OneYear = 172800

โ€ข Pets grow over time โ€ข Scale increases dynamically


๐Ÿ”” Notification System โ€‹

lua
Notify({
  text = "Message"
})

โ€ข Supports VORP / RSG / REDEMRP โ€ข Handles all notifications


๐Ÿ“ค Export โ€‹

lua
exports['fx-pets']:IsEntityPet(entity, cb)

โ€ข Checks if entity is a pet โ€ข Returns result via callback


๐ŸŒ Server Config โ€‹

lua
SV_Config.Webhook = {}

โ€ข Discord webhook system โ€ข Logs important actions


โš ๏ธ Important Notes โ€‹

โ€ข Items must be installed โ€ข Pet model names must match config โ€ข Images must exist for UI โ€ข Pet limits must be configured โ€ข Animations must exist per pet


๐Ÿšจ Common Issues โ€‹

โ€ข Pet not spawning โ†’ item missing โ€ข Pet not visible โ†’ image missing โ€ข Pet not working โ†’ wrong model name โ€ข Cannot buy pet โ†’ market config wrong โ€ข Pet dying โ†’ hunger/thirst enabled


๐Ÿ Summary โ€‹

FX-PETS provides:

โ€ข Advanced pet system โ€ข Custom pet support โ€ข Hunger & thirst system โ€ข Combat & behavior system โ€ข Market & shop system โ€ข Full framework compatibility


ยฉ Fixitfy Development

โšก Premium RedM scripts crafted with performance & quality in mind.