Hello,
At the moment I am using this native for my vehicle manager to see the type of vehicle so it is Compacts, Sedans, … But, it is server side so I can’t use it…
Hello,
At the moment I am using this native for my vehicle manager to see the type of vehicle so it is Compacts, Sedans, … But, it is server side so I can’t use it…
GetVehicleClass(
vehicle --[[ Vehicle ]]
)
Do be client side tho, is there any error in you’re script?
No, just i not need client for it, normaly … Because my vehicules management is only server side.
You can’t use it server side because the server has no way of knowing what the class of a vehicle is
That’s why I ask you to pass it on the shared side, if it’s not possible, no problem.
You could just get the class of the vehicle on the client and pass that to the server through net events.
That’s not what I’m looking for, if I do that, the client-side values can be changed but I think I have an idea thanks to your feedback.
Set the values server side and run security check then sync to the client(s) if your idea doesn’t work
alternatively you could create a server function to get a vehicle class, just create a table with the values and string of the class to return, then you can use state bags to assign that class to the entity or do the previous method