Pledii Pets
Installation
Pets 2.2.0 and newer is one resource. pledii_lib is no longer required.
When updating from an older version, copy any customized framework,
notification and audit settings from Lib into Config.Framework,
Config.Notify and Config.Audit in Pets' config.lua. Remove
ensure pledii_lib and its folder only if no other installed resource needs it.
Keep your existing Pets database tables and data; no manual database migration
is needed.
-
Drop this folder into your resources. Keep the folder name
pledii_pets: the escrow licence is bound to it. Upload over FTP in Binary transfer mode, or the encrypted files arrive corrupted. -
Add the three items (
pet_food,pet_sponge,pet_tonic). VORP and RSG keep items in different places:- VORP — run
installation/items_vorp.sqlon your server's database (HeidiSQL: open the database, File → Load SQL file, then Execute). - RSG — open
installation/items_rsg.luaand paste its three entries intorsg-core/shared/items.lua, underRSGShared.Items. Restartrsg-core.
Item images are not included. Use art you already have, or drop your own
pet_food.png,pet_sponge.pngandpet_tonic.pnginto your inventory's item image folder. - VORP — run
-
Start it after your framework and
oxmysql:ensure pledii_petsThe two database tables create themselves on the first start. (
installation/install.sqlholds the same definitions if you prefer to create them by hand; it is safe to run twice.) -
Give yourself the permission, in
server.cfg. It covers/petmanager,/petxpand/petadmin:add_ace group.admin pledii_pets.manager allow add_principal identifier.license:xxxxx group.admin # you, if you are not in group.admin yet -
Check the console on first start. Pets prints one line saying which framework it found and what it is selling:
[pledii_pets] Pledii Pets v2.2.0 | framework: vorp | selling: pets for cash | config OKIf anything in your config is wrong it prints a numbered list instead. Fix those before you go further — they are all things that would otherwise fail silently in front of a player.
-
Open
config.luaand set the shop coordinates for your map. The two that ship are Saint Denis and Blackwater. Stand where you want a vendor and run/petadmin coords: it prints the numbers in F8 and copies them to your clipboard, ready to paste. -
Give yourself a pet to try it:
/petmanager→ Give a pet → pick yourself and a breed → Give. Then/mypets→ Call.
Requirements & Notes
Required
| Framework | VORP or RSG |
| Database | oxmysql |
| Server artifact | 7290 or newer |
| OneSync | on |
The artifact and OneSync requirements are declared in the manifest, so the resource refuses to start rather than half-work on a build that is too old.
Optional
- ox_lib — used for notifications if it is running. Without it the
framework's own notify is used. Neither is required;
Config.Notifychooses between them. - A keybind resource —
Config.PetInteraction.rebindlets players rebind the pet key through a keybind script you already run. Off unless configured. - ricx_farmanimals — if you run it, dogs register as herding dogs and graze
nearby farm animals automatically. Configurable in
Config.PetShepherd, and skipped entirely when the resource is not present. - An admin/logging resource —
Config.Auditcan hand purchase, rename, summon and death events to any resource you name, through export names you configure. Off by default.
Important
Two features ship switched off. They change the feel of the script a lot, so they are opt-in rather than something you discover after install:
Config.PetMetabolism.enabled = false— the survival loop. Turn it on and animals get hungry and dirty, catch diseases and can die of neglect. Turn it on before players get attached to anything.Config.PetFetch.enabled = false— foraging. The loot tables reference item names from a specific server; check every entry against your own items table before enabling it, or pets will come back with items you do not have.
The loot and supply item names are a starting point, not a guarantee. Item
ids differ between servers. pet_food, pet_sponge and pet_tonic are created
by the install files, but everything in the fetch tables assumes item names your
database may not use.
Nine languages, all complete: English, Georgian, Arabic, German, Spanish,
Italian, Portuguese, Russian and Turkish. Set Config.Locale. The files are
unencrypted, so wording can be changed and new languages added.
One shop breed needs an external download to look right. The MP Foxhound
row is the multiplayer foxhound model the base game already has. A free
community retexture turns it into a German Shepherd — see
docs/GERMAN_SHEPHERD.md for the link and the caveats. Nothing is bundled and
nothing breaks without it.
No game files are streamed. This resource ships no models, no textures and
no audio taken from RDR2. Everything in web/ was generated by the scripts in
tools/, and the three typefaces are SIL Open Font License 1.1 with their
licence texts in licenses/. If you redistribute the resource, those licence
files must travel with it.
What stays editable under escrow
Escrow only encrypts Lua. These files ship readable so the script stays yours to adapt:
config.lua— the whole configopen/server.lua,open/client.lua— every call into VORP / RSGlocales/*.lua— every stringgame/server/Validate.lua— the startup checkinstallation/*— the SQL and the RSG item snippet
Everything under web/, tools/, docs/ and licenses/ is not Lua and is
readable regardless.
Commands
| Command | Who | What |
|---|---|---|
/mypets |
everyone | the owned-animals list — summon, rename, inspect |
/petmenu |
everyone | the control radial, without walking up to the animal |
/petmanager |
ace pledii_pets.manager |
live shop editor and hand a pet to a player |
/petxp 500 · /petxp level 10 |
ace pledii_pets.manager |
add or take away XP, or set the level, of the pet you have out; add a player id for someone else's |
/petadmin coords |
ace pledii_pets.manager |
print and copy coordinates for placing a vendor |
/petadmin debug on |
ace pledii_pets.manager |
debug output in the console and your F8, no restart |
/petadmin diag |
ace pledii_pets.manager |
your identity and your database rows, for support |
All of them can be renamed or disabled in Config.Commands — set one to
'' and it is not registered at all. petControl there gives /petmenu a
second name; it is off by default. Players only see the commands they may use
in their chat suggestions.