Denumeste masina.
Exemplu:
new CarTruck[MAX_VEHICLES];
CarTruck[playerid] = AddStaticVehicleEx (modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:angle, color1, color2, respawn_delay, addsiren=0)
SetVehicleParamsEx(CarTruck[playerid], 1, 0, 0, 1, 0, 0, 0);
Functie:
SetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective)
(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective)
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.