CityRP Documentation Repository

ITEM.Vehicle

The vehicle item base.

Registration ID
base_vehicle
Inherits
ITEM → ITEM.Vehicle

Functions

SharedITEM:canDestroy(ply, _amt, meta) → boolean, string|nilSource ☍

canDestroy hook/override for this item base.

Parameters

Returns

  1. 1boolean
  2. 2string|nil
SharedITEM:canDrop(ply, pos) → boolean, stringSource ☍

canDrop hook/override for this item base.

Parameters

Returns

  1. 1boolean
  2. 2string
SharedITEM:canGive(ply, _amt, _to, meta) → boolean, string|nilSource ☍

canGive hook/override for this item base.

Parameters

  • plyPlayer
  • _amtany
  • _toany
  • metaany

Returns

  1. 1boolean
  2. 2string|nil
SharedITEM:canPickup(ply) → booleanSource ☍

canPickup hook/override for this item base.

Parameters

Returns

  1. boolean
SharedITEM:canSell(ply, _amt, meta) → boolean, string|nilSource ☍

canSell hook/override for this item base.

Parameters

Returns

  1. 1boolean
  2. 2string|nil
SharedITEM:GetMetaName(meta) → string|unknownSource ☍

GetMetaName hook/override for this item base.

Parameters

  • metaany

Returns

  1. string|unknown
SharedITEM:onDestroy(ply, amt, meta)Source ☍

onDestroy hook/override for this item base.

Parameters

SharedITEM:onGive(ply, amt, to, meta)Source ☍

onGive hook/override for this item base.

Parameters

SharedITEM:onPickup(ply)Source ☍

Parameters

  • plyany
SharedITEM:onSell(ply, amt, meta)Source ☍

onSell hook/override for this item base.

Parameters

SharedITEM:onUse(ply, pos, meta) → booleanSource ☍

onUse hook/override for this item base.

Parameters

Returns

  1. boolean
SharedITEM:uponLoad()Source ☍

uponLoad hook/override for this item base.

Fields

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 speed once 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.