๐พ 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 โ
ensure fx-petsโข Place the script inside your resources folder โข Add ensure fx-pets to your server.cfg โข Restart your server
๐๏ธ SQL Setup (VORP) โ
INSERT INTO items (...)
VALUES ('petbox', 'Pet Box', ...)โข Required items for pet system โข Includes petbox, petfood, petrevive, petwater
๐ฆ Items (RSG) โ
petbox = { name = 'petbox', label = 'Pet Box' }โข Add items to rsg-core/shared/items.lua โข Items must be usable
โ๏ธ Basic Configuration โ
Config.Language = "en"
Config.MyPetsCommand = "mypets"โข Command to open pet menu โ /mypets โข Language system supported
๐ Locale System โ
Config.Locale = {
["en"] = {},
["tr"] = {}
}โข Multi-language support โข Fully customizable
๐ Pet Ownership Settings โ
Config.PetOwnershipLimit = 5
Config.PetOutLimit = 2โข Limit how many pets a player can own and spawn โข Set false for unlimited
๐ง Pet Stat System โ
Config.PetStatSettings = {
hunger = {},
thirst = {}
}โข Hunger & thirst system โข Dynamic stat decrease
โค๏ธ Damage System โ
Config.PetDamageSystem = {
enabled = true
}โข Pets take damage when starving or dehydrated โข Fully configurable
๐ Consumables โ
Config.Consumables = {
food = { petfood = 50 },
drink = { petwater = 50 }
}โข Feeding system โข Restores hunger and thirst
๐ฉบ Heal & Revive System โ
Config.ReviveItems = {
["petheal"] = {},
["petrevive"] = {}
}โข Heal and revive pets โข Supports animations and effects
๐ฎ Pet Controls โ
Config.RightClickShortCut = {}โข Sit / Follow / Heal / Revive / Go Home โข Fully customizable controls
๐พ Pet Commands System โ
Config.PetCommands = {
["dog"] = {}
}โข Per-pet command system โข Example: follow, stay, attack
๐ญ Animations โ
Config.Animations = {
["dog"] = {}
}โข Custom animations per pet type โข Includes idle, eat, sit, etc.
๐พ Pet Definitions โ
Config.Pets = {
["A_C_DogHusky_01"] = {}
}โข Defines all pets โข Includes scale, behavior, abilities
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 โ
Config.PetMarket = {}โข Main pet shop configuration โข Controls categories and availability
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 โ
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 โ
Config.Markets = {
["BLACKWATER"] = {}
}โข Defines NPC shop locations โข Includes spawn, camera, and interaction
๐จ UI Settings โ
Config.Theme = "Dark"โข Supports Light / Dark mode โข Fully customizable UI
๐ Growth System โ
Config.OneYear = 172800โข Pets grow over time โข Scale increases dynamically
๐ Notification System โ
Notify({
text = "Message"
})โข Supports VORP / RSG / REDEMRP โข Handles all notifications
๐ค Export โ
exports['fx-pets']:IsEntityPet(entity, cb)โข Checks if entity is a pet โข Returns result via callback
๐ Server Config โ
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
