Hey dont be a jerk by saying dumb stuff trying to show off on something you dont have
do anyone have the problem that when you riding the horse on the server, it doesn’t run or walk smooth?
They do walk for me/us, but smooth can indeed be a problem, which is explained in the first post, it’s caused due to the animals still being ‘full ai’ (but being in ‘override’) and that can cause it to be a bit more difficult to make them walk where you want…
but once you get the hang of it, it’s not that bad tbh
There a way to make it run? They all kinda limp around, however when you’re taming them they seem to run just fine.
Either way, great script.
Hey there,
The reason why they do run ‘normally’ when your are still taming them, is that at that point you are 'just attached to the animal ‘object’. The motions and such are all still ‘free will’ of the animal.
Once you have tamed it, the script will override the animals by your key-inputs, however: even while they are in ‘override mode’ it’s still an ‘AI Object/Animal/NPC’ which isn’t intended to interact with “human NPC’s” at all. So it needs some ‘hard/harsh’ overrides to ensure it has some ‘decent controls’.
The only way it would be possible (that i know of) that the animal will have full control and override, would be when the animal will be ‘replaced’ by a fully manually programmed ‘object’ when you board it. and then possibly ‘swapping it back’ to a normal animal when you get of the animal.
But when doing it this way it would require A LOT more programming, modeling, animation scripting and stuff like that.
At the moment, this is the best i could manage to get out of the riding animals section without making it to complicated or massive.
For us it has been quite usable so far, as long as you don’t “demand” to much ‘competitive running’ with the animals haha
Thanks for your feedback btw
Is there anyway I could have like a spawnable key or menu for the horse because I am looking to create a mounted horse unit for roleplay and I cannot find anyway to spawn animals
I’m having an issue where you just float in the air, I presume its because you don’t teleport to update the location to be the same as the cow. I’m running OneSync on 1440.
Sorry can’t be of help here we have tested it thoroughly without (LOCAL) issues, however over lan/wan it can de-sync for other players. Can also have some issues where it doesn’t update your map location.
This is because there is no teleportation used at all, it’s actually just an “attachobject” call which is performed, but in some instances it can lose sync with the animal and other players for example…
Some ‘issues’ we also encountered (but have nothing to do with my script on it’s own) is when we load up a truck with cows (by riding them in there for ‘transport’ haha) is that they can ‘vanish’ for other players or totally freakout (as in bash through the truck and destroy it) when other players get near the player transporting the cows…
I guess they don’t have a ‘sync priority/or slot’ on the server or so (just an assumption though), other than that, the scripts have NOT been tested on onesync at all, so can’t help for possible issues with that at all (and thus don’t know if they exist for onesync either)
Okay I figured out how to add my own menu nevermind. @VenomXNL why is it when you start to force the animal to run it starts to but then jerks back and goes into a walk again?
Hey, the forced “running bug” happens because the animal’s walk speed it modified, but since it’s still an AI animal (only it’s ‘commanded’ to ignore the player and not get scared of it and move to the position several meters in front of you)… it will try to ‘flee’, the only way (that i know of) to get rid of the 'unwanted behavior is to write an virtual animal/ped totally from scratch with it’s own AI.
Which would mean that when you find an animal in the wild it would needed to be replaced (instantly) with an exact looking copy of your own AI Controlled model/animal, and then again be replaced with an ‘freeroam’ AI model once you dismount it.
TLDR: It will take lots of effort to design an animal from scratch if you want it to be fully controllable
Is there a way to control him perfectly? Don’t run around, can you run freely?
Thanks for this wonderful release
Question I know this is my issue but not sure how to fix it and ive looked around and cant seem to find what I need but when I ride anything my character stays static? how do I make it so he moves with it etc?
Hey man, it’s not ‘per see’ your issue
I just really don’t have the time to make decent horse riding animations (and honestly don’t even know IF ADDITIONAL animations can be added to the game without replacing others (have not looked into it yet).
But if you would wanted to, it would mean you would have to find/make an decent horse riding animation, import it or replace an other, and then play that animation when riding an animal
Maybe there are some ‘animation packs’ you can download and use to ‘adapt’ my script (you would only have to change one or two lines where it ‘starts the idle animation’ )
awesome
I am going to record a parody of old town road and would like to spawn an animal, can you give me the old code part that spawna animals?
Hello
I would like to know if there is this script but just with horses that we spawn like a vehicle
Nope there isn’t, however in the initial post i’ve made, i’ve also placed an link to an (mod) model you can include in your server (to replace another animal though!) to be able to actually ride an horse.
KEEP IN MIND THOUGH: If you for example replace cow’s with horses, it will still use the cow animations and sounds!
Changing those would be possible but as far as i know it would have to be done locally (NOT streamed). Plus it will take A LOT of time to for example make your own custom horse animations with a toolkit like Blender or 3DMax for example.
For me this (when i was still working on FiveM Mods) was just an ‘side-fun-gig’ to make/expand, so i didn’t bother on making all those additional files, because that would take a lot of time, testing and implementing.
However if you just use the mod listed in the main post, you can replace another animal with the horse mod i’ve linked to, and then spawn that ‘horse’ just like you would spawn a ped/animal
anybody have the issue where the animals just run away so you can never get near them? the deer mainly
From the original post: ’ ride wild animals (IF you can catch up to them).’
So yeah, they will definitely run away haha
It’s not always easy to catch then, but that was actually one of the things we had most fun with back in the day when we still played FiveM.
wild boars can even be more fun, those are crazy fast in some regions
Cows are the easiest to ‘catch’ though btw