Scripting/Server/Classes/Vehicle/Remove
Deletes the vehicle for everybody (the handle becomes invalid).
Contents
Syntax
vehicle.Remove()Example
function onPlayerCommand( player, cmd, params )
{
if ( cmd == "remove" )
{
local veh = player.Vehicle;
if ( !veh ) return MessagePlayer( "Sit in a vehicle first.", player );
veh.Remove();
}
}This sample was generated from the signature – adapt the values to your gamemode.
Related pages
- vehicle.Respawn
- vehicle.Fix
- vehicle.Explode
- vehicle.SetBurstableTyres
- player.AttachTo
- object.AttachTo
- object.AttachToBone
- vehicle.SetComponentStatus
- vehicle.SetComponentStatus
- vehicle.SetComponentAngle
- vehicle.SetComponentColour
- vehicle.TurretRotation
Section: Vehicle
Categories: Server methods | Vehicle