Refurb
February 6, 2023, 10:54pm
1
We are missing a crucial feature for server side syncing which is AttachEntityToEntity server side so we do not need to request control or other dumb alternatives.
This could help many people and I can see it has already been requested quite a bit on github which can be found here: Add server-side native AttachEntityToEntity · Issue #1508 · citizenfx/fivem · GitHub
3 Likes
There have been multiple platform suggestions opened for this, a proper implementation of this is very hard, which is why it has yet to be added yet.
Here’s a few of such requests:
Hello.
At the moment there are some vehicle natives server sided like
SetVehicleDoorsLocked or SetVehicleAlarm for example.
However I would also like to see a native like
SetVehicleEngineOn
Is there a reason why not all vehicle natives are server side(Just curious )
With this you can make for example a vehicle lock system completely server sided.
Sometimes we need to spawn a vehicle with custom tuning at certain place with no player inside the vehicle. For example we’re making a mission where players can steal customized vehicle. Thanks to CFX devs we can spawn vehicle server-side and even set the plate text server-side by using RPC natives. But we can’t change car mods, extras, liveries server-side and that is a bit of a problem.
We can spawn car and find entity owner to set all these mods from his client but there’s no guarantee that …
With the introduction of CREATE_AUTOMOBILE for the server a while back, spawning vehicles has gotten a lot easier. Sadly with this there’s some weird logic you have to do in order to set it client-side, or have to use RPC’s which can sometimes be a bit weird.
Some natives that would be useful to be able to set server side would be:
SetVehicleNumberPlateText
SetVehicleNumberPlateTextIndex
SetVehicleBodyHealth
SetVehicleEngineHealth
SetVehiclePetrolTankHealth
SetVehicleFuelLevel
SetVehicleDirtLe…
1 Like