From SA-MP Wiki

Jump to: navigation, search


Destroy a vehicle. It will disappear instantly.

vehicleidThe ID of the vehicle to destroy.

Return Values:

  • 1: The function was executed successfully.
  • 0: The function failed to execute. The vehicle does not exist.

Example Usage:

public OnPlayerCommandText(playerid, cmdtext[])
     if(strcmp(cmdtext, "/destroyveh", true) == 0)
          new vehicleid = GetPlayerVehicleID(playerid);
          return 1;
     return 0;

Related Functions

The following functions may be helpful as they relate to this function in one way or another.

Personal tools
In other languages