Server RPC Natives

I just learned about the RPC natives shown here. https://github.com/citizenfx/fivem/blob/master/ext/natives/rpc_spec_natives.lua

And since then I have been playing with these to see how they work and hope start migrating everything i can to server side when possible. the first issue i found is that if I use CreateVehicle and cannot change the vehicle properties on client. My question is… is it intended to be this way? once I use a server native a cannot edit properties on client side?

2 Likes

no, the entity owner can use calls on the vehicle as usual.

note: the entity owner, and ensure you are using the right vehicle handle (aka, network object ID → vehicle on client)

Are RPC Natives equal to the thing you get when clicking “API Set: server” here:
https://runtime.fivem.net/doc/natives/
Or are they something different?

1 Like

I believe they are the same but that documentation have not been update to include these new server side natives.