Documentation

Want to improve the docs? Take a look at scripting-api-data!
Found a bug? jc3mp/bugs is a good place to let us know.

NetworkVehicle

Constructible This class can not be instantiated from your script. Do not try to use the `new` keyword on this class. Auto Destroy Instances of this class will be deleted automatically. Custom Properties You cannot add your own properties to instances of this class. They will not be saved and can cause undefined behavior.

Properties

Name Type Description
networkId number read only the network id of this entity. It is not unique across different entities and will be re-assigned once this entity was destroyed
health number read only the NetworkVehicle's current health
maxHealth number read only the NetworkVehicle's max health
aabb Array read only
position Vector3f read only the NetworkVehicle's position in the game world
rotation Vector3f read only the NetworkVehicle's rotation in the game world
angularVelocity Vector3f read only
linearVelocity Vector3f read only
aimPosition Vector3f read only
engineRPM number read only
type number read only
modelHash number read only model hash of the NetworkVehicle (TODO: reference to all hashes)
gear null read only
nitroEnabled boolean read only
turboJumpEnabled boolean read only
speedKph number read only

Functions

NetworkVehicle.GetRenderTransform(number p1)

returns: Matrix

Parameter

Name Type Description
p1 number

Stay informed

By becoming the newest member of our growing forums, we and hundreds of other players will always keep you up to date on everything JC3:MP related.