Fivem K9 utility script banner

Fivem K9 utility script

4 devlogs
22h 24m 31s

A script that improves basic functionality with dog peds in Fivem, featuring things like:
Making dogs be able to sprint in interiors
Having the vehicle emote play automatically when entering a vehicle so the dog doesn't look like a crumpled mess…

A script that improves basic functionality with dog peds in Fivem, featuring things like:
Making dogs be able to sprint in interiors
Having the vehicle emote play automatically when entering a vehicle so the dog doesn’t look like a crumpled mess (plus an emote customisation menu for the emote that plays when the dog enters a car, just for fun)
Giving the dog more stamina to make them more realistic
Stopping the dog from dying as soon as they touch water
Stopping the dog from ragdolling when they touch a stationary car

Repository

Loading README...

toby2

Most of the work I did was around getting the dog to be able to climb properly onto the back of utes so they can attach without having to be carried up (this took so insanely long, but works like 99% of the time now)
I also got a bit of help from my bf to get the sitting in back seats to function properly
I also finally added input sanitisation to the save settings function on the server side
I also removed a lot of the prints that I had just forgotten to remove after debugging things

Next, I want to make it so dogs can choose which seat in particular they prefer, rather than just the closest back seat
I also want to see if I can make it so dogs can talk to each other through in game proximity chat, but either others can’t hear them or others just hear weird dog sounding noises

0
toby2

I fixed a few bugs around the dog ped not ragdolling when falling off objects high enough to warrant a ragdoll and not flying off cars when they’re driving.
When doing that, I also added a function so that for certain vehicles, set in the config, the dog can attach themself to the outside of the vehicle to simulate them sitting in the back of a ute/pickup truck, and then I also decided to make it do the same emote that happens when the dog enters a car
I also started work on a leash that physically holds the dog to the handler/owner (I’m using native gta5 rope natives and they are so weird and annoying to use, my brain hurts)

I’m now moving onto making it so the dog can target the back and jump into the back of the vehicle (I’m hoping the animation I think should work works otherwise I have to go learn custom animations)

Attachment
0
toby2

I made the custom stamina actaully work again (it was a .0 on the end of a number used in a native lol) and added a custom regen that’s set in config but allows for dogs to regen stamina quicker and also has an option for even faster regen when on low stamina so being out of stamina is less of an issue for the dog

next I still need to make it so dogs can sit in the back by default

Attachment
0
toby2

So far I’ve built:
the whitelist and verification of said whitelist,
the ability to “swim” (currently the dog just runs in the water like it doesn’t affect them, but I’m going to fix that at some point),
the ability to not ragdoll when walking into the side of cars,
the custom stamina (I think I broke this somehow though and idk how, will revisit later)
the ability to sprint inside MLOs,
the automatic vehicle emote,
and the customisation menu for the emote it plays (this also uses a json database, which I didn’t know worked in Fivem until now lol)

Now I’m working on making a feature that allows the dog to automatically try to get in the back if there is space, rather than the front seat (I will probably also make a customisation menu for this)

I’m also at some point going to build a proper UI for it, rather than just having ox_lib as the menus

Attachment
0