ITEM.Vehicle
The vehicle item base.
- SharedITEM:canDestroy(ply, _amt, meta) → boolean, string|nilSource ☍
-
canDestroyhook/override for this item base.Parameters
- plyPlayer
- _amtany
- metaany
Returns
- 1boolean
- 2string|nil
- SharedITEM:canDrop(ply, pos) → boolean, stringSource ☍
-
canDrophook/override for this item base.Parameters
Returns
- 1boolean
- 2string
- SharedITEM:canGive(ply, _amt, _to, meta) → boolean, string|nilSource ☍
-
canGivehook/override for this item base.Parameters
- plyPlayer
- _amtany
- _toany
- metaany
Returns
- 1boolean
- 2string|nil
- SharedITEM:canPickup(ply) → booleanSource ☍
-
canPickuphook/override for this item base.Parameters
- plyPlayer
Returns
- boolean
- SharedITEM:canSell(ply, _amt, meta) → boolean, string|nilSource ☍
-
canSellhook/override for this item base.Parameters
- plyPlayer
- _amtany
- metaany
Returns
- 1boolean
- 2string|nil
- SharedITEM:GetMetaName(meta) → string|unknownSource ☍
-
GetMetaNamehook/override for this item base.Parameters
- metaany
Returns
- string|unknown
- SharedITEM:onDestroy(ply, amt, meta)Source ☍
-
onDestroyhook/override for this item base.Parameters
- plyPlayer
- amtnumber
- metaany
- SharedITEM:onGive(ply, amt, to, meta)Source ☍
-
onGivehook/override for this item base.Parameters
- SharedITEM:onPickup(ply)Source ☍
-
Parameters
- plyany
- SharedITEM:onSell(ply, amt, meta)Source ☍
-
onSellhook/override for this item base.Parameters
- plyPlayer
- amtnumber
- metaany
- SharedITEM:onUse(ply, pos, meta) → booleanSource ☍
-
onUsehook/override for this item base.Parameters
Returns
- boolean
- SharedITEM:uponLoad()Source ☍
-
uponLoadhook/override for this item base.
- SharedITEM.f1infoSource ☍
- SharedITEM.pluralSource ☍
- SharedITEM.SetBoostSpeedSource ☍
-
Sets the measured top speed with boost, in mph. Shown in the F1 label as "(Nmph boost)" only when it is faster than
speedonce both are rounded; nil leaves the label as is. - SharedITEM.SetNoSkinSource ☍
-
Sets if the skin changer is disabled on this vehicle.
- SharedITEM.SetSpeedSource ☍
-
Sets the maximum speed of the given vehicle.
- SharedITEM.SetVehicleSource ☍
-
Sets the vehicle class for this item.