-
Notifications
You must be signed in to change notification settings - Fork 0
/
vehicle.d.ts
157 lines (96 loc) · 8.04 KB
/
vehicle.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
declare function setVehicleColor(theVehicle: Vehicle, r1: number, g1: number, b1: number, r2?: number, g2?: number, b2?: number, r3?: number, g3?: number, b3?: number, r4?: number, g4?: number, b4?: number): boolean
declare function setTrainSpeed(train: Vehicle, speed: number): boolean
declare function setVehiclePanelState(theVehicle: Vehicle, panelID: number, state: number): boolean
declare function detachTrailerFromVehicle(theVehicle: Vehicle, theTrailer?: Vehicle): boolean
declare function setVehicleTurretPosition(turretVehicle: Vehicle, positionX: number, positionY: number): boolean
declare function setVehicleDoorOpenRatio(theVehicle: Vehicle, door: number, ratio: number, time?: 0): boolean
declare function setVehicleRespawnPosition(theVehicle: Vehicle, x: number, y: number, z: number, rx?: number, ry?: number, rz?: number): boolean
declare function setVehicleRespawnDelay(theVehicle: Vehicle, timeDelay: number): boolean
declare function setVehicleHandling(theVehicle: element, property: string, value: object): boolean
declare function setVehiclePlateText(theVehicle: element, numberplate: string): boolean
declare function setVehicleHeadLightColor(theVehicle: Vehicle, red: number, green: number, blue: number): boolean
declare function setTrainDirection(train: Vehicle, clockwise: boolean): boolean
declare function setTrainDerailable(derailableVehicle: Vehicle, derailable: boolean): boolean
declare function fixVehicle(theVehicle: Vehicle): boolean
declare function addVehicleUpgrade(theVehicle: Vehicle, upgrade: number): boolean
declare function createVehicle(model: number, x: number, y: number, z: number, rx?: number, ry?: number, rz?: number, numberplate?: string, bDirection?: boolean, variant1?: number, variant2?: number): Vehicle
declare function setVehicleSirensOn(theVehicle: Vehicle, sirensOn: boolean): boolean
declare function getVehicleSirens(theVehicle: Vehicle): table
declare function setVehicleWheelStates(theVehicle: Vehicle, frontLeft: number, rearLeft?: -1, frontRight?: -1, rearRight?: -1): boolean
declare function isVehicleDamageProof(theVehicle: Vehicle): boolean
declare function getVehiclePlateText(theVehicle: Vehicle): string
declare function isTrainChainEngine(theTrain: Vehicle): boolean
declare function getVehicleTurnVelocity(theVehicle?: Vehicle): [number, number, number]
declare function respawnVehicle(theVehicle: Vehicle): boolean
declare function isTrainDerailable(vehicleToCheck: Vehicle): boolean
declare function getTrainDirection(train: Vehicle): boolean
declare function getVehicleTowedByVehicle(theVehicle: Vehicle): Vehicle
declare function resetVehicleExplosionTime(theVehicle: Vehicle): boolean
declare function isTrainDerailed(vehicleToCheck: Vehicle): boolean
declare function resetVehicleIdleTime(theVehicle: Vehicle): boolean
declare function spawnVehicle(theVehicle: Vehicle, x: number, y: number, z: number, rx?: number, ry?: number, rz?: number): boolean
declare function isVehicleFuelTankExplodable(theVehicle: Vehicle): boolean
declare function setVehicleOverrideLights(theVehicle: Vehicle, value: number): boolean
declare function setTrainPosition(train: Vehicle, position: number): boolean
declare function setModelHandling(modelId: number, property: string, value: object): boolean
declare function addVehicleSirens(theVehicle: Vehicle, sirenCount: number, sirenType: number, visible360flag?: false, checkLosFlag?: true, useRandomiser?: true, silentFlag?: false): boolean
declare function removeVehicleUpgrade(theVehicle: Vehicle, upgrade: number): boolean
declare function blowVehicle(vehicleToBlow: Vehicle, explode?: true): boolean
declare function blowVehicle(vehicleToBlow: Vehicle): boolean
declare function attachTrailerToVehicle(theVehicle: Vehicle, theTrailer: Vehicle): boolean
declare function getVehiclesOfType(model: number): table
declare function setVehicleSirens(theVehicle: Vehicle, sirenPonumber: number, posX: number, posY: number, posZ: number, red: number, green: number, blue: number, alpha?: 255, minAlpha?: 0.0): boolean
declare function setTrainDerailed(vehicleToDerail: Vehicle, derailed: boolean): boolean
declare function removeVehicleSirens(theVehicle: Vehicle): boolean
declare function setVehicleTaxiLightOn(taxi: Vehicle, LightState: boolean): boolean
declare function getVehicleTowingVehicle(theVehicle: Vehicle): Vehicle
declare function setVehicleDamageProof(theVehicle: Vehicle, damageProof: boolean): boolean
declare function getVehicleOverrideLights(theVehicle: Vehicle): number
declare function getVehicleType(theVehicle: Vehicle): string
declare function setVehicleVariant(theVehicle: Vehicle, variant1?: number, variant2?: number): boolean
declare function toggleVehicleRespawn(theVehicle: Vehicle, Respawn: boolean): boolean
declare function isVehicleTaxiLightOn(taxi: Vehicle): boolean
declare function getVehicleSirenParams(theVehicle: Vehicle): table
declare function isVehicleOnGround(theVehicle: Vehicle): boolean
declare function getVehicleOccupant(theVehicle: Vehicle, seat?: 0): Player
declare function isVehicleBlown(theVehicle: Vehicle): boolean
declare function getTrainSpeed(train: Vehicle): number
declare function setVehicleLightState(theVehicle: Vehicle, light: number, state: number): boolean
declare function getTrainPosition(train: Vehicle): number
declare function getVehicleHandling(theVehicle: element): table
declare function getVehicleCompatibleUpgrades(theVehicle: Vehicle, slot?: number): table
declare function getVehicleDoorState(theVehicle: Vehicle, door: number): number
declare function getVehiclePanumberjob(theVehicle: Vehicle): number
declare function getModelHandling(modelId: number): table
declare function isVehicleLocked(theVehicle: Vehicle): boolean
declare function getVehicleMaxPassengers(theVehicle: Vehicle): number
declare function getVehicleMaxPassengers(modelID: number): number
declare function getVehicleHeadLightColor(theVehicle: Vehicle): [number, number, number]
declare function getVehicleWheelStates(theVehicle: Vehicle): [number, number, number, number]
declare function getVehicleName(theVehicle: Vehicle): string
declare function getVehiclePanelState(theVehicle: Vehicle, panel: number): number
declare function getVehicleModelFromName(name: string): number
declare function getVehicleNameFromModel(model: number): string
declare function getOriginalHandling(modelID: number): table
declare function getVehicleEngineState(theVehicle: Vehicle): boolean
declare function getVehicleLandingGearDown(theVehicle: Vehicle): boolean
declare function getVehicleLightState(theVehicle: Vehicle, light: number): number
declare function getVehicleColor(theVehicle: Vehicle): [number, number, number, number]
declare function getVehicleController(theVehicle: Vehicle): Player
declare function getVehicleUpgrades(theVehicle: Vehicle): table
declare function getVehicleSirensOn(theVehicle: Vehicle): boolean
declare function getVehicleTurretPosition(turretVehicle: Vehicle): [number, number]
declare function setVehiclePanumberjob(theVehicle: Vehicle, value: number): boolean
declare function setVehicleDoorsUndamageable(theVehicle: Vehicle, state: boolean): boolean
declare function setVehicleLandingGearDown(theVehicle: Vehicle, gearState: boolean): boolean
declare function setVehicleDoorState(theVehicle: Vehicle, door: number, state: number): boolean
declare function getVehicleOccupants(theVehicle: Vehicle): table
declare function getVehicleUpgradeOnSlot(theVehicle: Vehicle, slot: number): number
declare function setVehicleLocked(theVehicle: Vehicle, locked: boolean): boolean
declare function getVehicleUpgradeSlotName(slot_or_upgrade: number): string
declare function setVehicleEngineState(theVehicle: Vehicle, engineState: boolean): boolean
declare function setVehicleIdleRespawnDelay(theVehicle: Vehicle, timeDelay: number): boolean
declare function setVehicleFuelTankExplodable(theVehicle: Vehicle, explodable: boolean): boolean
declare function getVehicleVariant(theVehicle: Vehicle): [number, number]
declare function setVehicleTurnVelocity(theVehicle: Vehicle, rx: number, ry: number, rz: number): boolean
declare function getVehicleDoorOpenRatio(theVehicle: Vehicle, door: number): number