SetVehicleAngularVelocity
From SA-MP Wiki
Sets the angular X, Y and Z velocity of a vehicle
(vehicleid, Float:x, Float:y, Float:z)
| vehicleid | The ID of the vehicle to set the velocity of. |
| Float:x | The amount of velocity in the angular X direction. |
| Float:y | The amount of velocity in the angular Y direction . |
| Float:z | The amount of velocity in the angular Z direction. |
| Returns | This function doesn't return a specific value |
public OnPlayerCommandText(playerid, cmdtext[]) { if (!strcmp("/spin", cmdtext)) { if(IsPlayerInAnyVehicle(playerid)) SetVehicleAngularVelocity(GetPlayerVehicleID(playerid), 0.0, 0.0, 2.0); return 1; } }
- SetVehicleVelocity: Set a vehicle's velocity.
- GetVehicleVelocity: Get a vehicle's velocity.
