Skip to content

10% off shop orders, applied at checkoutBlack Friday: 30% off until Dec 1Server templatesServer templates

RPScripts

rxeAnimalsJob for FiveM

By RPScripts

Illustration of a pet shop with a dog, cat and bird in the window, a glowing paw sign and a food bowl
On this page

rxeAnimalsJob by RayanWaize is a pet shop job for ESX servers. Employees of the animal job sell pets to nearby players, and owners call up and manage their pet from a menu. The repository also contains a separate map resource, petshopmap. The README is short and in French, so the details below come from the code and the SQL file in the repository, which was last updated on 21 May 2023.

Requirements

  • Framework: ESX, using the older esx:getSharedObject event
  • mysql-async, loaded in fxmanifest.lua
  • esx_society and esx_addoninventory, which server.lua calls for the society and the shared storage
  • RageUI, bundled inside the resource

oxmysql can replace mysql-async: its documentation says you can delete mysql-async and let oxmysql provide that functionality. If the resource’s manifest loads @mysql-async/lib/MySQL.lua, change that line to @oxmysql/lib/MySQL.lua.

rxeAnimalsJob is ESX-only. On QBCore, the VIP Pet Shop covers a similar pet shop with its own interior, with an NPC seller instead of player employees.

Installation

  1. Copy the rxeAnimalsJob and petshopmap folders into your server's resources directory.
  2. Import sql.sql. It creates the animal job with four grades (Recrue, Vendeur, Experimente, Patron), the society_animal account and storage, and adds a pet column to the users table.
  3. Add ensure petshopmap and ensure rxeAnimalsJob to server.cfg after ESX and its society resources.
  4. Restart the server and give a test character the animal job.

Configuration

All options are in config.lua:

  • OpenGestionAnimal: key for the pet management menu, F10 by default
  • JobName and SocietyName: animal and society_animal
  • ESXSociety: opens the esx_society boss menu; set it to false and put your own event in TriggerOpenBoss
  • Pos: blip, sales menu, storage, boss menu, garage and vehicle spawn points, by default around vector3(562.34, 2737.95, 42.26)
  • ListVeh: job vehicles, only a Blista by default
  • PetShop: eleven pets with label and price, such as Chien, Chat, Husky and Berger allemand
  • Logs: Discord webhook URLs for sales, storage and boss actions, empty by default

Pet labels and notifications are in French. Employees can post a server-wide advert with the /annonceanimal command.

Before going live

The rAnimalerie:buyPet server callback takes the price from the config and charges the buyer's cash, but it does not check whether the seller has the animal job, and it does not credit the money to the society account. Review server.lua before you open the job to players.

The fxmanifest.lua of petshopmap lists fifteen weapon .meta files that are not in the repository, so watch the server console when the map starts. The repository has no license file.

Download

rxeAnimalsJob by RayanWaize is free. Download it from the creator's original GitHub repository: https://github.com/RayanWaize/rxeAnimalsJob

Preview video: https://www.youtube.com/watch?v=pdr9zO2O9Z4