This page is for mod makers who write server mods such as convoys, traffic, missions or garages. Server owners don’t need to do anything: the API does nothing for players on its own.
CZAutoz_HeliAPI); this one leaves them alone.
Everything runs on the server. On a player’s game every call returns false or 0 and does nothing. It works only on a whitelisted server.
Checking the mod is there
AddCallatic_Vehicles_Core_Scripts to your requiredAddons, then:
IsUsable
true when car is a car, is not destroyed, and can be used on this server right now.
Every other call returns false (and does nothing) when this is false. Check it first.
Reading state
Each call returnstrue and fills the value, or false (value 0) if the car is not usable.
Controlling it
Each call follows the same rules as a player’s action. It returnstrue if it was done.
The calls are made for server mods, so they need no driver and no key. They work on a car nobody is in and on a key-locked car, and Unlock needs no key. Starting and stopping the engine are refused while someone is in the driver’s seat: that player’s game runs the engine.
Events
Server only. They fire only while the car is usable;OnDestroyed fires as the car is destroyed. OnDamaged gives the damage to the part of the car that was hit.
CallLater.