Bostra
April 1, 2023, 6:18am
1
Bostra-Pet (Petting Animals)
Features:
Fully Open-Source
Customizable
Custom sounds
Easy to configure
Simple resource with 0.0ms resmon
Intended for stationary animals as there’s no current functionality for freezing the entity.
Stress relief for QB or other huds with the same stress event names.
Updates:
4/1: Updated to remove qb-progressbar in favor of Ox_lib. Added ox_target support so it should be standalone framework wise.
Preview
How To Install
Drag and drop bostra-pet
In your server.cfg
add ensure bostra-pet
In sounds
drag cat.ogg
, dog.ogg
, and animal.ogg
to interact-sound/client/html/sounds
In config.lua
change settings to your preference
Dependencies
qb-target or ox_target
interact-sound
12 Likes
Oh Lord, I like the idea, but is the goal of the script to spawn pets all over the server until they occupy most of the map?
(I think at some point the game pool would become too big and the game would crash. I seem to remember that this was 400 entries.)
Bostra
April 1, 2023, 2:18pm
3
No. The spawning animals isn’t a feature. I just had that because it’s hard as hell to find cats to give a preview lol.
pls add ox_core support + ox_target would love it
Bostra
April 1, 2023, 7:09pm
5
Yeah I could use ox lib progressbar instead and throw a config toggle for ox target.
1 Like
Bostra
April 1, 2023, 8:01pm
6
Pushed an update for standalone support, requiring either qb-target or ox_target. Switched to ox_lib from qb-progressbar.
Let me know if you have any issues!
what about " interact-sound " is it standalone ? because it got forked from qb-core
Bostra
April 1, 2023, 8:37pm
8
I think so. You have it backwards though, interact-sound was forked to be included in the qb recipe.
Looking at the source code it looks like all natives and nui.
Hey could you add a ox_inventory shop for buying the peds and with an “pet whisle” (extra item) you get a menu where you can select what pet you have should spawn and follow you around
Bostra
April 1, 2023, 10:59pm
11
That’s out of scope for this script, and tbh my abilities with ox_core at least.