This is my first ever FiveM script, hope you enjoy it.
With JPets, players can spawn in a range of animals (where you can configure it) which can attack and follow. This was mostly made for vMenu servers that want to implement pets someway (but feel free to use it anywhere you want).
Usage
Download and put the files in your server’s resources folder and ensure it in server.cfg.
Configure the config.lua to your liking.
Now start your server and load up your game.
Execute /createPet <petname> – This name is set in your config.lua
Point at a ped to attack and press E (by default).
Enjoy!
There are two commands that are supported with this, those being:
createPet <petname> – Does what it says (pet name set in config.lua).
tpPet – TPs your pet (if active)
Video Preview:
Configuration
It is highly customizable with all of these options available straight away (as of 6th August 2022). I would like to actively expand this resource however and am open to any and all suggestions anyone may have!
Pretty cool, but for ~ 120 lines of code seems kinda like a cash grab and it doesnt even allow you to edit the code. idk could just be me. Nice release
Fair enough for a first release, although there is still alot to improve, maybe you should / could make a v2 version of this when you are even more experienced.
Looking forward to see future releases from you.
Tried this on our QBCore server. /createPet does nothing regardless which ped we use. /tpPet only get the “You don’t have an active pet” notification. Any ideas?
Is there a way to make it so only admins can give peds out??? That way not everyone has attack dogs on the loose. Or if you can set ace perms to give permissions to people who can be trusted to use this.