Vehicle

From GT-MP
Jump to: navigation, search

Vehicle class

The Vehicle class represent a vehicle in your server.


Using

GrandTheftMultiplayer.Server.Elements.Vehicle

using GrandTheftMultiplayer.Server.Elements;


Vehicle Properties

Name Type Accessibility Description
primaryColor Int32 Writeable ?
secondaryColor Int32 Writeable ?
customPrimaryColor GrandTheftMultiplayer.Server.Constant.Color Writeable ?
customSecondaryColor GrandTheftMultiplayer.Server.Constant.Color Writeable ?
health System.Single Writeable ?
engineHealth float Writeable ?
livery Int32 Writeable ?
trailer GrandTheftMultiplayer.Server.Elements.Vehicle Read-Only ?
traileredBy GrandTheftMultiplayer.Server.Elements.Vehicle Read-Only Will be removed with version 0.1.7
siren Boolean Read-Only ?
numberPlate String Writeable ?
specialLight Boolean Writeable ?
bulletproofTyres Boolean Writeable ?
numberPlateStyle Int32 Writeable ?
pearlescentColor Int32 Writeable ?
wheelColor Int32 Writeable ?
wheelType Int32 Writeable ?
engineStatus Boolean Writeable ?
tyreSmokeColor GrandTheftMultiplayer.Server.Constant.Color Writeable ?
modColor1 GrandTheftMultiplayer.Server.Constant.Color Writeable ?
modColor2 GrandTheftMultiplayer.Server.Constant.Color Writeable ?
windowTint Int32 Writeable ?
enginePowerMultiplier System.Single Writeable ?
engineTorqueMultiplier System.Single Writeable ?
oilLevel float Writeable ?
fuelLevel float Writeable ?
dirtLevel float Writeable ?
neonColor GrandTheftMultiplayer.Server.Constant.Color Writeable ?
dashboardColor Int32 Writeable ?
trimColor Int32 Writeable ?
displayName String Read-Only ?
occupants GrandTheftMultiplayer.Server.Elements.Client[] Read-Only ?
maxOccupants Int32 Read-Only ?
maxSpeed float Read-Only ?
maxAcceleration float Read-Only ?
maxTraction float Read-Only ?
maxBraking float Read-Only ?
handle GrandTheftMultiplayer.Shared.NetHandle Writeable ?
Value Int32 Read-Only ?
freezePosition Boolean Writeable-Only ?
position GrandTheftMultiplayer.Shared.Math.Vector3 Writeable ?
rotation GrandTheftMultiplayer.Shared.Math.Vector3 Writeable ?
IsNull Boolean Read-Only ?
exists Boolean Read-Only ?
type GrandTheftMultiplayer.Shared.EntityType Read-Only ?
transparency Int32 Writeable ?
dimension Int32 Writeable ?
invincible Boolean Writeable ?
collisionless Boolean Writeable ?
model Int32 Read-Only ?
petrolTankHealth float Writeable ?
isBike Boolean Read-Only ?
isBicycle Boolean Read-Only ?
isCar Boolean Read-Only ?
isBoat Boolean Read-Only ?
isHeli Boolean Read-Only ?
isPlane Boolean Read-Only ?
isQuad Boolean Read-Only ?
isTrain Boolean Read-Only ?
isBlimp Boolean Read-Only ?
isCargobob Boolean Read-Only ?
isEmergencyBoat Boolean Read-Only ?
isAmphibiousQuadBike Boolean Read-Only ?
isAmphibiousVehicle Boolean Read-Only ?
isTrailer Boolean Read-Only ?
locked Boolean Writeable ?
Class Int32 Read-Only ?
ClassName String Read-Only ?
Truck GrandTheftMultiplayer.Server.Elements.Vehicle Read-Only Returns the vehicle/truck that carries this vehicle/trailer. (Version 0.1.7)

Vehicle Methods

Name Return Parameters Description
get_primaryColor() Int32 ?
set_primaryColor() Void Int32 value ?
get_secondaryColor() Int32 ?
set_secondaryColor() Void Int32 value ?
get_customPrimaryColor() GrandTheftMultiplayer.Server.Constant.Color ?
set_customPrimaryColor() Void GrandTheftMultiplayer.Server.Constant.Color value ?
get_customSecondaryColor() GrandTheftMultiplayer.Server.Constant.Color ?
set_customSecondaryColor() Void GrandTheftMultiplayer.Server.Constant.Color value ?
get_health() System.Single ?
set_health() Void System.Single value ?
get_livery() Int32 ?
set_livery() Void Int32 value ?
get_trailer() GrandTheftMultiplayer.Server.Elements.Vehicle ?
get_siren() Boolean ?
get_numberPlate() String ?
set_numberPlate() Void String value ?
get_specialLight() Boolean ?
set_specialLight() Void Boolean value ?
get_bulletproofTyres() Boolean ?
set_bulletproofTyres() Void Boolean value ?
get_numberPlateStyle() Int32 ?
set_numberPlateStyle() Void Int32 value ?
get_pearlescentColor() Int32 ?
set_pearlescentColor() Void Int32 value ?
get_wheelColor() Int32 ?
set_wheelColor() Void Int32 value ?
get_wheelType() Int32 ?
set_wheelType() Void Int32 value ?
get_engineStatus() Boolean ?
set_engineStatus() Void Boolean value ?
get_tyreSmokeColor() GrandTheftMultiplayer.Server.Constant.Color ?
set_tyreSmokeColor() Void GrandTheftMultiplayer.Server.Constant.Color value ?
get_modColor1() GrandTheftMultiplayer.Server.Constant.Color ?
set_modColor1() Void GrandTheftMultiplayer.Server.Constant.Color value ?
get_modColor2() GrandTheftMultiplayer.Server.Constant.Color ?
set_modColor2() Void GrandTheftMultiplayer.Server.Constant.Color value ?
get_windowTint() Int32 ?
set_windowTint() Void Int32 value ?
get_enginePowerMultiplier() System.Single ?
set_enginePowerMultiplier() Void System.Single value ?
get_engineTorqueMultiplier() System.Single ?
set_engineTorqueMultiplier() Void System.Single value ?
get_oilLevel() float ?
set_oilLevel() Void float value ?
get_fuelLevel() float ?
set_fuelLevel() Void float value ?
get_dirtLevel() float ?
set_dirtLevel() Void float value ?
get_neonColor() GrandTheftMultiplayer.Server.Constant.Color ?
set_neonColor() Void GrandTheftMultiplayer.Server.Constant.Color value ?
get_dashboardColor() Int32 ?
set_dashboardColor() Void Int32 value ?
get_trimColor() Int32 ?
set_trimColor() Void Int32 value ?
get_displayName() String ?
get_occupants() GrandTheftMultiplayer.Server.Elements.Client[] ?
get_maxOccupants() Int32 ?
get_maxSpeed() float ?
get_maxAcceleration() float ?
get_maxTraction() float ?
get_maxBraking() float ?
repair() Void ?
popTyre() Void Int32 tyre ?
fixTyre() Void Int32 tyre ?
isTyrePopped() Boolean Int32 tyre ?
breakDoor() Void Int32 door ?
fixDoor() Void Int32 door ?
isDoorBroken() Boolean Int32 door, ?
openDoor() Void Int32 door ?
closeDoor() Void Int32 door ?
isDoorOpen() Boolean Int32 door ?
breakWindow() Void Int32 window ?
fixWindow() Void Int32 window ?
isWindowBroken() Boolean Int32 window ?
setExtra() Void Int32 extra, Boolean enabled ?
getExtra() Boolean Int32 extra ?
setMod() Void Int32 slot, Int32 mod ?
getMod() Int32 Int32 slot ?
removeMod() Void Int32 slot ?
setNeons() Void Int32 slot, Boolean turnedon ?
getNeons() Boolean Int32 slot ?
get_handle() GrandTheftMultiplayer.Shared.NetHandle ?
get_Value() Int32 ?
GetHashCode() Int32 ?
Equals() Boolean System.Object obj ?
set_freezePosition() Void Boolean value ?
set_position() Void GrandTheftMultiplayer.Shared.Math.Vector3 value ?
get_position() GrandTheftMultiplayer.Shared.Math.Vector3 ?
set_rotation() Void GrandTheftMultiplayer.Shared.Math.Vector3 value ?
get_rotation() GrandTheftMultiplayer.Shared.Math.Vector3 ?
get_IsNull() Boolean ?
get_exists() Boolean ?
get_type() GrandTheftMultiplayer.Shared.EntityType ?
set_transparency() Void Int32 value ?
get_transparency() Int32 ?
set_dimension() Void Int32 value ?
get_dimension() Int32 ?
set_invincible() Void Boolean value ?
get_invincible() Boolean ?
set_collisionless() Void Boolean value ?
get_collisionless() Boolean ?
get_model() Int32 ?
delete() Void ?
movePosition() Void GrandTheftMultiplayer.Shared.Math.Vector3 target, Int32 duration ?
moveRotation() Void GrandTheftMultiplayer.Shared.Math.Vector3 target, Int32 duration ?
attachTo() Void GrandTheftMultiplayer.Shared.NetHandle entity, String bone, GrandTheftMultiplayer.Shared.Math.Vector3 offset, GrandTheftMultiplayer.Shared.Math.Vector3 rotation ?
detach() Void ?
detach() Void Boolean resetCollision ?
createParticleEffect() Void String ptfxLib, String ptfxName, GrandTheftMultiplayer.Shared.Math.Vector3 offset, GrandTheftMultiplayer.Shared.Math.Vector3 rotation, System.Single scale, Int32 bone ?
setSyncedData() Void String key, System.Object value ?
getSyncedData() System.Object String key ?
resetSyncedData() Void String key ?
hasSyncedData() Boolean String key ?
setData() Void String key, System.Object value ?
getData() System.Object String key ?
resetData() Void String key ?
hasData() Boolean String key ?
ToString() String ?
GetType() System.Type ?
get_engineHealth() float ?
set_engineHealth() Void float value ?
get_petrolTankHealth() float ?
set_petrolTankHealth() Void float value ?
waitForSynchronization() Void Int32 timeout Waits until the entity is known to all clients. (For working with newly created objects like vehicles). Default timeout = 1000ms (Version 0.1.7)
waitForPlayerSynchronization() Void GrandTheftMultiplayer.Server.Elements.Client client, Int32 timeout Waits until the entity is known to the specified client. Default timeout = 1000ms (Version 0.1.7)
breakHeadlight() Void Int32 headlight Breaks the specified headlight. Use 0 for left and 1 for right headlight. (Version 0.1.7)
fixHeadlight() Void Int32 headlight Fixes the specified headlight. Use 0 for left and 1 for right headlight. (Version 0.1.7)
isHeadlightBroken() Boolean Int32 headlight Returns whether the specified headlight is broken or not. Use 0 for left and 1 for right headlight. (Version 0.1.7)