Skip to main content

RAGE.Elements.Vehicle

Client-side function

C#​

Create a new vehicle.

Required Params​

  • hash: uint
  • position: Vector3
  • heading: float
  • numberPlate: string
  • alpha: int
  • locked: bool
  • primColor: int
  • secColor: int
  • dimension: uint

Return value​

  • int

Syntax​

new RAGE.Elements.Vehicle(hash, position, heading, numberPlate, alpha, locked, primColor, secColor, dimension);

Example​

//todo