Server
Vehicle

Vehicle

To get the vehicle use the NDCore.getVehicle function.


Vehicle data

  • entity: number
  • id: number | string
  • owner: number
  • keys: table
  • properties: table
  • locked: boolean
  • hotwired: boolean
  • hotwired: boolean
  • metadata: table
  • netId: number

Vehicle functions

delete

Delete the vehicle entity and optionally save the properties to the database.

parameters

  • saveProperties: boolean
vehicle.delete(saveProperties)

setProperties

Update the vehicle properties both on the entity and database.

parameters

  • properties: table
vehicle.setProperties(properties)

setLocked

Set the vehicle as locked/unlocked

parameters

  • status: boolean
vehicle.setLocked(status)

setPlate

Set the vehicle plate.

parameters

  • plate: string
vehicle.setPlate(plate)

setStatus

Set the vehicle status.

parameters

  • statusType: string
  • status: boolean

statusType can be "stored", "impounded", "stolen"

vehicle.setStatus(statusType, status)