This function was added in SA-MP 0.3c and will not work in earlier versions!
Sets a vehicle's parameters for all players.
|vehicleid||The ID of the vehicle to set the parameters of.|
|engine||Engine status. 0 - Off, 1 - On.|
|lights||Light status. 0 - Off, 1 - On.|
|alarm||Vehicle alarm status. If on, the alarm starts. 0 - Off, 1 - On.|
|doors||Door lock status. 0 - Unlocked, 1 - Locked.|
|bonnet||Bonnet (hood) status. 0 - Closed, 1 - Open.|
|boot||Boot/trunk status. 0 - Closed, 1 - Open.|
|objective||Toggle the objective arrow above the vehicle. 0 - Off, 1 - On.|
1: The function executed successfully.
0: The function failed to execute. This means the vehicle does not exist.
The alarm will not reset when finished, you'll need to reset it by yourself with this function. Lights also operate during the day (Only when ManualVehicleEngineAndLights is enabled).