Personal tools

Lua/Client/Vehicle

From JC2-MP Documentation

< Lua‎ | Client
Jump to: navigation, search

Static functions

Returns Prototype
Vehicle GetById(number)
VehicleClass GetClassByModelId(number)
number GetMassByModelId(number)
string GetNameByModelId(number)

Functions

Returns Prototype
VehicleAerodynamics GetAerodynamics()
Vector3 GetAngularVelocity()
Vector3, Vector3 GetBoundingBox()
Vector3 GetCenterOfMass()
VehicleClass GetClass()
GetColors()
string GetDecal()
Character GetDriver()
number GetHealth()
number GetId()
boolean GetInvulnerable()
Vector3 GetLinearVelocity()
number GetMass()
number GetMaxRPM()
number GetModelId()
string GetName()
table GetOccupants()
number GetRPM()
boolean GetSeatLocked(VehicleSeat)
VehicleSuspension GetSuspension()
string GetTemplate()
number GetTopSpeed()
number GetTorque()
VehicleTransmission GetTransmission()
object GetValue(string)
number GetWheelCount()
boolean IsValid()
SetAngle(Angle)
SetAngularVelocity(Vector3)
SetLinearVelocity(Vector3)
SetPosition(Vector3)
SetSeatLocked(VehicleSeat, boolean)
SetValue(string, object)

Functions inherited from ClientStreamableObject

Returns Prototype
Angle GetAngle()
ClimateZone GetClimateZone()
Vector3 GetPosition()

Operators

Returns Prototype
boolean Vehicle == Vehicle
string tostring(Vehicle)