@citizenfx/client 2.0.7255-1 → 2.0.7274-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/natives_universal.d.ts +342 -80
- package/package.json +1 -1
package/natives_universal.d.ts
CHANGED
|
@@ -1167,6 +1167,15 @@ declare function AddVehicleUpsidedownCheck(vehicle: number): void;
|
|
|
1167
1167
|
*/
|
|
1168
1168
|
declare function AdvanceClockTimeTo(hour: number, minute: number, second: number): void;
|
|
1169
1169
|
|
|
1170
|
+
/**
|
|
1171
|
+
* This native it's a debug native. Won't do anything.
|
|
1172
|
+
*/
|
|
1173
|
+
declare function AllowAmbientVehiclesToAvoidAdverseConditions(vehicle: number): void;
|
|
1174
|
+
/**
|
|
1175
|
+
* This native it's a debug native. Won't do anything.
|
|
1176
|
+
*/
|
|
1177
|
+
declare function N_0xb264c4d2f2b0a78b(vehicle: number): void;
|
|
1178
|
+
|
|
1170
1179
|
/**
|
|
1171
1180
|
* ALLOW_MISSION_CREATOR_WARP
|
|
1172
1181
|
*/
|
|
@@ -6639,7 +6648,21 @@ declare function GetVehicleHasLandingGear(vehicle: number): boolean;
|
|
|
6639
6648
|
declare function DoesVehicleHaveRoof(vehicle: number): boolean;
|
|
6640
6649
|
|
|
6641
6650
|
/**
|
|
6651
|
+
* Determines whether the specified vehicle is equipped with a searchlight.
|
|
6652
|
+
* ```
|
|
6642
6653
|
* NativeDB Introduced: v2189
|
|
6654
|
+
* ```
|
|
6655
|
+
* @param vehicle The vehicle to check for the presence of a searchlight.
|
|
6656
|
+
* @return Returns `true` if the vehicle has a searchlight, `false` otherwise.
|
|
6657
|
+
*/
|
|
6658
|
+
declare function DoesVehicleHaveSearchlight(vehicle: number): boolean;
|
|
6659
|
+
/**
|
|
6660
|
+
* Determines whether the specified vehicle is equipped with a searchlight.
|
|
6661
|
+
* ```
|
|
6662
|
+
* NativeDB Introduced: v2189
|
|
6663
|
+
* ```
|
|
6664
|
+
* @param vehicle The vehicle to check for the presence of a searchlight.
|
|
6665
|
+
* @return Returns `true` if the vehicle has a searchlight, `false` otherwise.
|
|
6643
6666
|
*/
|
|
6644
6667
|
declare function DoesVehicleHaveSearchlight(vehicle: number): boolean;
|
|
6645
6668
|
|
|
@@ -8998,6 +9021,25 @@ declare function FireAirDefenseWeapon(zoneId: number, x: number, y: number, z: n
|
|
|
8998
9021
|
*/
|
|
8999
9022
|
declare function N_0x44f1012b69313374(zoneId: number, x: number, y: number, z: number): void;
|
|
9000
9023
|
|
|
9024
|
+
/**
|
|
9025
|
+
* Resets and brings back all the children of a fragment based object.
|
|
9026
|
+
* This should be used when attaching or detaching an object from another entity, especially when the object being detached consists of multiple fragments.
|
|
9027
|
+
* Attempting to teleport a fragment-based object using [`SET_ENTITY_COORDS`](#\_0x06843DA7060A026B) such as a flag object, will result in it remaining in place and failing to teleport, given the condition mentioned in the preceding statement.
|
|
9028
|
+
* The native should be executed after detaching the object from its parent entity and before calling [`SET_ENTITY_COORDS`](#\_0x06843DA7060A026B).
|
|
9029
|
+
* Example given down below.
|
|
9030
|
+
* @param object The object to fix fragments for (a handle should be passed).
|
|
9031
|
+
*/
|
|
9032
|
+
declare function FixObjectFragment(object: number): void;
|
|
9033
|
+
/**
|
|
9034
|
+
* Resets and brings back all the children of a fragment based object.
|
|
9035
|
+
* This should be used when attaching or detaching an object from another entity, especially when the object being detached consists of multiple fragments.
|
|
9036
|
+
* Attempting to teleport a fragment-based object using [`SET_ENTITY_COORDS`](#\_0x06843DA7060A026B) such as a flag object, will result in it remaining in place and failing to teleport, given the condition mentioned in the preceding statement.
|
|
9037
|
+
* The native should be executed after detaching the object from its parent entity and before calling [`SET_ENTITY_COORDS`](#\_0x06843DA7060A026B).
|
|
9038
|
+
* Example given down below.
|
|
9039
|
+
* @param object The object to fix fragments for (a handle should be passed).
|
|
9040
|
+
*/
|
|
9041
|
+
declare function N_0xf9c1681347c8bd15(object: number): void;
|
|
9042
|
+
|
|
9001
9043
|
/**
|
|
9002
9044
|
* See eWindowId declared in [`IS_VEHICLE_WINDOW_INTACT`](#\_0x46E571A0E20D01F1).
|
|
9003
9045
|
* This function is coded to not work on vehicles of type: `CBike`, `Bmx`, `CBoat`, `CTrain`, and `CSubmarine`.
|
|
@@ -9673,6 +9715,34 @@ declare function GetBoatBoomPositionRatio_3(vehicle: number, p1: boolean): void;
|
|
|
9673
9715
|
*/
|
|
9674
9716
|
declare function N_0x0f3b4d4e43177236(vehicle: number, p1: boolean): void;
|
|
9675
9717
|
|
|
9718
|
+
/**
|
|
9719
|
+
* Retrieves the agility for a specific boat model, including any vehicle mods. Unlike other vehicles where Rockstar Games typically assess performance based on traction, boats use agility as a measure. This static value is distinct from the traction metrics used for other vehicle types.
|
|
9720
|
+
* ```
|
|
9721
|
+
* NativeDB Introduced: v323
|
|
9722
|
+
* ```
|
|
9723
|
+
* @param modelHash The model hash of the boat.
|
|
9724
|
+
* @return Returns the agility value of the specified boat as a float number.
|
|
9725
|
+
*/
|
|
9726
|
+
declare function GetBoatVehicleModelAgility(modelHash: string | number): number;
|
|
9727
|
+
/**
|
|
9728
|
+
* Retrieves the agility for a specific boat model, including any vehicle mods. Unlike other vehicles where Rockstar Games typically assess performance based on traction, boats use agility as a measure. This static value is distinct from the traction metrics used for other vehicle types.
|
|
9729
|
+
* ```
|
|
9730
|
+
* NativeDB Introduced: v323
|
|
9731
|
+
* ```
|
|
9732
|
+
* @param modelHash The model hash of the boat.
|
|
9733
|
+
* @return Returns the agility value of the specified boat as a float number.
|
|
9734
|
+
*/
|
|
9735
|
+
declare function N_0x5aa3f878a178c4fc(modelHash: string | number): number;
|
|
9736
|
+
/**
|
|
9737
|
+
* Retrieves the agility for a specific boat model, including any vehicle mods. Unlike other vehicles where Rockstar Games typically assess performance based on traction, boats use agility as a measure. This static value is distinct from the traction metrics used for other vehicle types.
|
|
9738
|
+
* ```
|
|
9739
|
+
* NativeDB Introduced: v323
|
|
9740
|
+
* ```
|
|
9741
|
+
* @param modelHash The model hash of the boat.
|
|
9742
|
+
* @return Returns the agility value of the specified boat as a float number.
|
|
9743
|
+
*/
|
|
9744
|
+
declare function GetVehicleModelMoveResistance(modelHash: string | number): number;
|
|
9745
|
+
|
|
9676
9746
|
/**
|
|
9677
9747
|
* This native returns the index of a calming quad if the given point is inside its bounds.
|
|
9678
9748
|
* @param x The X coordinate
|
|
@@ -12062,6 +12132,19 @@ declare function GetIsAutoSaveOff(): boolean;
|
|
|
12062
12132
|
*/
|
|
12063
12133
|
declare function N_0x6e04f06094c87047(): boolean;
|
|
12064
12134
|
|
|
12135
|
+
/**
|
|
12136
|
+
* Checks whether the specified boat vehicle is capsized, meaning it has overturned or is upside down in the water.
|
|
12137
|
+
* @param vehicle The vehicle to check. This should be a boat-type vehicle.
|
|
12138
|
+
* @return Returns `true` if the specified boat is capsized, `false` otherwise.
|
|
12139
|
+
*/
|
|
12140
|
+
declare function GetIsBoatCapsized(vehicle: number): boolean;
|
|
12141
|
+
/**
|
|
12142
|
+
* Checks whether the specified boat vehicle is capsized, meaning it has overturned or is upside down in the water.
|
|
12143
|
+
* @param vehicle The vehicle to check. This should be a boat-type vehicle.
|
|
12144
|
+
* @return Returns `true` if the specified boat is capsized, `false` otherwise.
|
|
12145
|
+
*/
|
|
12146
|
+
declare function N_0xba91d045575699ad(vehicle: number): boolean;
|
|
12147
|
+
|
|
12065
12148
|
/**
|
|
12066
12149
|
* See eDoorId declared in [`SET_VEHICLE_DOOR_SHUT`](#\_0x93D9BD300D7789E5)
|
|
12067
12150
|
*/
|
|
@@ -12376,11 +12459,21 @@ declare function N_0x0c15b0e443b2349d(): number;
|
|
|
12376
12459
|
declare function GetMainPlayerBlipId(): number;
|
|
12377
12460
|
|
|
12378
12461
|
/**
|
|
12379
|
-
*
|
|
12380
|
-
* Returns "CARNOTFOUND" if the hash doesn't match a vehicle hash.
|
|
12462
|
+
* Retrieves the manufacturer's name for a specified vehicle.
|
|
12381
12463
|
* ```
|
|
12382
12464
|
* NativeDB Introduced: v1868
|
|
12383
12465
|
* ```
|
|
12466
|
+
* @param modelHash The model hash of the vehicle.
|
|
12467
|
+
* @return Returns the display label of the manufacturer if the vehicle model is recognized, or "CARNOTFOUND" if the hash does not correspond to any known vehicle model.
|
|
12468
|
+
*/
|
|
12469
|
+
declare function GetMakeNameFromVehicleModel(modelHash: string | number): string;
|
|
12470
|
+
/**
|
|
12471
|
+
* Retrieves the manufacturer's name for a specified vehicle.
|
|
12472
|
+
* ```
|
|
12473
|
+
* NativeDB Introduced: v1868
|
|
12474
|
+
* ```
|
|
12475
|
+
* @param modelHash The model hash of the vehicle.
|
|
12476
|
+
* @return Returns the display label of the manufacturer if the vehicle model is recognized, or "CARNOTFOUND" if the hash does not correspond to any known vehicle model.
|
|
12384
12477
|
*/
|
|
12385
12478
|
declare function GetMakeNameFromVehicleModel(modelHash: string | number): string;
|
|
12386
12479
|
|
|
@@ -16632,7 +16725,12 @@ declare function GetVariantProp(componentHash: string | number, variantPropIndex
|
|
|
16632
16725
|
declare function N_0xd81b7f27bc773e66(componentHash: string | number, variantPropIndex: number): [number, number, number];
|
|
16633
16726
|
|
|
16634
16727
|
/**
|
|
16635
|
-
* static
|
|
16728
|
+
* Retrieves a static value representing the maximum drive force of specific a vehicle, including any vehicle mods. This value does not change dynamically during gameplay. This value provides an approximation and should be considered alongside other performance metrics like top speed for a more comprehensive understanding of the vehicle's capabilities.
|
|
16729
|
+
* ```
|
|
16730
|
+
* NativeDB Introduced: v323
|
|
16731
|
+
* ```
|
|
16732
|
+
* @param vehicle The vehicle for which to obtain the acceleration.
|
|
16733
|
+
* @return Returns the acceleration value of the specified vehicle as a float number.
|
|
16636
16734
|
*/
|
|
16637
16735
|
declare function GetVehicleAcceleration(vehicle: number): number;
|
|
16638
16736
|
|
|
@@ -17042,15 +17140,30 @@ declare function GetVehicleEnveffScale(vehicle: number): number;
|
|
|
17042
17140
|
declare function GetVehiclePaintFade(vehicle: number): number;
|
|
17043
17141
|
|
|
17044
17142
|
/**
|
|
17045
|
-
*
|
|
17143
|
+
* Retrieves a static value representing the estimated max speed of a specific vehicle, including any vehicle mods. This value does not change dynamically during gameplay.
|
|
17144
|
+
* ```
|
|
17145
|
+
* NativeDB Introduced: v323
|
|
17146
|
+
* ```
|
|
17147
|
+
* @param vehicle The vehicle for which to obtain the estimated max speed.
|
|
17148
|
+
* @return Returns the estimated maximum speed of the specified vehicle as a float number.
|
|
17046
17149
|
*/
|
|
17047
17150
|
declare function GetVehicleEstimatedMaxSpeed(vehicle: number): number;
|
|
17048
17151
|
/**
|
|
17049
|
-
*
|
|
17152
|
+
* Retrieves a static value representing the estimated max speed of a specific vehicle, including any vehicle mods. This value does not change dynamically during gameplay.
|
|
17153
|
+
* ```
|
|
17154
|
+
* NativeDB Introduced: v323
|
|
17155
|
+
* ```
|
|
17156
|
+
* @param vehicle The vehicle for which to obtain the estimated max speed.
|
|
17157
|
+
* @return Returns the estimated maximum speed of the specified vehicle as a float number.
|
|
17050
17158
|
*/
|
|
17051
17159
|
declare function N_0x53af99baa671ca47(vehicle: number): number;
|
|
17052
17160
|
/**
|
|
17053
|
-
*
|
|
17161
|
+
* Retrieves a static value representing the estimated max speed of a specific vehicle, including any vehicle mods. This value does not change dynamically during gameplay.
|
|
17162
|
+
* ```
|
|
17163
|
+
* NativeDB Introduced: v323
|
|
17164
|
+
* ```
|
|
17165
|
+
* @param vehicle The vehicle for which to obtain the estimated max speed.
|
|
17166
|
+
* @return Returns the estimated maximum speed of the specified vehicle as a float number.
|
|
17054
17167
|
*/
|
|
17055
17168
|
declare function GetVehicleMaxSpeed(vehicle: number): number;
|
|
17056
17169
|
|
|
@@ -17243,15 +17356,15 @@ declare function GetVehicleInteriorColor(vehicle: number, color?: number): numbe
|
|
|
17243
17356
|
declare function GetVehicleInteriorColour(vehicle: number, color?: number): number;
|
|
17244
17357
|
|
|
17245
17358
|
/**
|
|
17246
|
-
*
|
|
17247
|
-
*
|
|
17248
|
-
*
|
|
17359
|
+
* Returns whether the specified vehicle is designated as a mercenary vehicle
|
|
17360
|
+
* @param vehicle The vehicle to check for mercenary status.
|
|
17361
|
+
* @return Returns `true` if the vehicle is a mercenary vehicle, `false` otherwise.
|
|
17249
17362
|
*/
|
|
17250
17363
|
declare function GetVehicleIsMercenary(vehicle: number): boolean;
|
|
17251
17364
|
/**
|
|
17252
|
-
*
|
|
17253
|
-
*
|
|
17254
|
-
*
|
|
17365
|
+
* Returns whether the specified vehicle is designated as a mercenary vehicle
|
|
17366
|
+
* @param vehicle The vehicle to check for mercenary status.
|
|
17367
|
+
* @return Returns `true` if the vehicle is a mercenary vehicle, `false` otherwise.
|
|
17255
17368
|
*/
|
|
17256
17369
|
declare function N_0xd4c4642cb7f50b5d(vehicle: number): boolean;
|
|
17257
17370
|
|
|
@@ -17444,17 +17557,6 @@ declare function N_0xc6ad107ddc9054cc(modelHash: string | number): number;
|
|
|
17444
17557
|
*/
|
|
17445
17558
|
declare function GetVehicleModelMaxTraction(modelHash: string | number): number;
|
|
17446
17559
|
|
|
17447
|
-
/**
|
|
17448
|
-
* GET_VEHICLE_MODEL_*
|
|
17449
|
-
* called if the vehicle is a boat -- returns vecMoveResistanceX?
|
|
17450
|
-
*/
|
|
17451
|
-
declare function GetVehicleModelMoveResistance(modelHash: string | number): number;
|
|
17452
|
-
/**
|
|
17453
|
-
* GET_VEHICLE_MODEL_*
|
|
17454
|
-
* called if the vehicle is a boat -- returns vecMoveResistanceX?
|
|
17455
|
-
*/
|
|
17456
|
-
declare function N_0x5aa3f878a178c4fc(modelHash: string | number): number;
|
|
17457
|
-
|
|
17458
17560
|
/**
|
|
17459
17561
|
* Returns max number of passengers (including the driver) for the specified vehicle model.
|
|
17460
17562
|
*/
|
|
@@ -17596,10 +17698,9 @@ declare function GetVehiclePedIsEntering(ped: number): number;
|
|
|
17596
17698
|
declare function SetExclusivePhoneRelationships(ped: number): number;
|
|
17597
17699
|
|
|
17598
17700
|
/**
|
|
17599
|
-
*
|
|
17600
|
-
* If the Ped is not in a vehicle and includeLastVehicle is true, the vehicle they were last in is returned.
|
|
17701
|
+
* Retrieves the vehicle the specified ped is currently in, or the last vehicle they were in.
|
|
17601
17702
|
* @param ped The target ped
|
|
17602
|
-
* @param lastVehicle
|
|
17703
|
+
* @param lastVehicle A boolean value where `false` represents the current vehicle the Ped is in, and `true` represents the last vehicle the Ped was in.
|
|
17603
17704
|
* @return The vehicle id. Returns 0 if the ped is/was not in a vehicle.
|
|
17604
17705
|
*/
|
|
17605
17706
|
declare function GetVehiclePedIsIn(ped: number, lastVehicle: boolean): number;
|
|
@@ -20415,9 +20516,10 @@ declare function IsEntityOccluded(entity: number): boolean;
|
|
|
20415
20516
|
declare function IsEntityOnFire(entity: number): boolean;
|
|
20416
20517
|
|
|
20417
20518
|
/**
|
|
20418
|
-
*
|
|
20419
|
-
* This
|
|
20420
|
-
*
|
|
20519
|
+
* Determines whether the screen position of the specified entity is within the 2D bounds of the screen.
|
|
20520
|
+
* This native will not check if the entity is not visible due to being occluded (for example, behind a wall). To check if a entity is on screen and is not occluded, use [IS_ENTITY_OCCLUDED](#\_0xE31C2C72B8692B64).
|
|
20521
|
+
* @param entity The entity to check.
|
|
20522
|
+
* @return Returns `true` if the the entity is in between the minimum and maximum values for the 2D screen bound coords; otherwise, `false`.
|
|
20421
20523
|
*/
|
|
20422
20524
|
declare function IsEntityOnScreen(entity: number): boolean;
|
|
20423
20525
|
|
|
@@ -24171,11 +24273,6 @@ declare function N_0x0811381ef5062fec(p0: number): void;
|
|
|
24171
24273
|
*/
|
|
24172
24274
|
declare function N_0x08e8eeadfd0dc4a0(amount: number): boolean;
|
|
24173
24275
|
|
|
24174
|
-
/**
|
|
24175
|
-
* NativeDB Introduced: v1180
|
|
24176
|
-
*/
|
|
24177
|
-
declare function N_0x0a3f820a9a9a9ac5(vehicle: number, x: number, y: number, z: number): void;
|
|
24178
|
-
|
|
24179
24276
|
/**
|
|
24180
24277
|
* CLEAR_VEHICLE_*
|
|
24181
24278
|
*/
|
|
@@ -24191,11 +24288,6 @@ declare function N_0x0a9c7f36e5d7b683(p0: number): void;
|
|
|
24191
24288
|
*/
|
|
24192
24289
|
declare function N_0x0aa27680a0bd43fa(): void;
|
|
24193
24290
|
|
|
24194
|
-
/**
|
|
24195
|
-
* 0x0AD9E8F87FF7C16F
|
|
24196
|
-
*/
|
|
24197
|
-
declare function N_0x0ad9e8f87ff7c16f(p0: number, p1: boolean): void;
|
|
24198
|
-
|
|
24199
24291
|
/**
|
|
24200
24292
|
* 0x0AE73D8DF3A762B2
|
|
24201
24293
|
*/
|
|
@@ -24226,11 +24318,6 @@ declare function N_0x0b568201dd99f0eb(p0: boolean): void;
|
|
|
24226
24318
|
*/
|
|
24227
24319
|
declare function N_0x0b8b7f74bf061c6d(): number;
|
|
24228
24320
|
|
|
24229
|
-
/**
|
|
24230
|
-
* NativeDB Introduced: v1290
|
|
24231
|
-
*/
|
|
24232
|
-
declare function N_0x0bbb9a7a8ffe931b(p0: number, p1: number, p2: number): void;
|
|
24233
|
-
|
|
24234
24321
|
/**
|
|
24235
24322
|
* NativeDB Introduced: v1180
|
|
24236
24323
|
*/
|
|
@@ -24536,12 +24623,6 @@ declare function N_0x1a7ce7cd3e653485(p0: number): void;
|
|
|
24536
24623
|
*/
|
|
24537
24624
|
declare function N_0x1a8ea222f9c67dbb(p0: number): [number, number];
|
|
24538
24625
|
|
|
24539
|
-
/**
|
|
24540
|
-
* Sets a value that appears to affect door opening behavior when damaged.
|
|
24541
|
-
* SET_*
|
|
24542
|
-
*/
|
|
24543
|
-
declare function N_0x1b212b26dd3c04df(vehicle: number, toggle: boolean): void;
|
|
24544
|
-
|
|
24545
24626
|
/**
|
|
24546
24627
|
* 0x1B7ABE26CBCBF8C7
|
|
24547
24628
|
*/
|
|
@@ -24653,11 +24734,6 @@ declare function N_0x1f7bc3539f9e0224(): void;
|
|
|
24653
24734
|
*/
|
|
24654
24735
|
declare function N_0x1f8e00fb18239600(p0: number): void;
|
|
24655
24736
|
|
|
24656
|
-
/**
|
|
24657
|
-
* 0x1F9FB66F3A3842D2
|
|
24658
|
-
*/
|
|
24659
|
-
declare function N_0x1f9fb66f3a3842d2(vehicle: number, p1: boolean): void;
|
|
24660
|
-
|
|
24661
24737
|
/**
|
|
24662
24738
|
* SET_PED_STE*
|
|
24663
24739
|
*/
|
|
@@ -28279,12 +28355,6 @@ declare function N_0xb1b6216ca2e7b55e(p0: number, p1: boolean, p2: boolean): voi
|
|
|
28279
28355
|
*/
|
|
28280
28356
|
declare function N_0xb1d2bb1e1631f5b1(): boolean;
|
|
28281
28357
|
|
|
28282
|
-
/**
|
|
28283
|
-
* This native doesn't seem to do anything, might be a debug-only native.
|
|
28284
|
-
* Confirmed, it is a debug native.
|
|
28285
|
-
*/
|
|
28286
|
-
declare function N_0xb264c4d2f2b0a78b(vehicle: number): void;
|
|
28287
|
-
|
|
28288
28358
|
/**
|
|
28289
28359
|
* NativeDB Added Parameter 2: Any p1
|
|
28290
28360
|
* NativeDB Introduced: v1493
|
|
@@ -28488,11 +28558,6 @@ declare function N_0xba7f0b77d80a4eb7(p0: number, p1: number): void;
|
|
|
28488
28558
|
*/
|
|
28489
28559
|
declare function N_0xba8d65c1c65702e5(toggle: boolean): void;
|
|
28490
28560
|
|
|
28491
|
-
/**
|
|
28492
|
-
* 0xBA91D045575699AD
|
|
28493
|
-
*/
|
|
28494
|
-
declare function N_0xba91d045575699ad(vehicle: number): boolean;
|
|
28495
|
-
|
|
28496
28561
|
/**
|
|
28497
28562
|
* 0xBA9749CC94C1FD85
|
|
28498
28563
|
*/
|
|
@@ -29831,11 +29896,6 @@ declare function N_0xf92099527db8e2a7(p0: number, p1: number): void;
|
|
|
29831
29896
|
*/
|
|
29832
29897
|
declare function N_0xf9acf4a08098ea25(ped: number, p1: boolean): void;
|
|
29833
29898
|
|
|
29834
|
-
/**
|
|
29835
|
-
* 0xF9C1681347C8BD15
|
|
29836
|
-
*/
|
|
29837
|
-
declare function N_0xf9c1681347c8bd15(object: number): void;
|
|
29838
|
-
|
|
29839
29899
|
/**
|
|
29840
29900
|
* 0xF9F2922717B819EC
|
|
29841
29901
|
*/
|
|
@@ -44464,6 +44524,29 @@ declare function SetHeliBladesFullSpeed(vehicle: number): void;
|
|
|
44464
44524
|
*/
|
|
44465
44525
|
declare function SetHeliBladesSpeed(vehicle: number, speed: number): void;
|
|
44466
44526
|
|
|
44527
|
+
/**
|
|
44528
|
+
* Set a specific offset for helis chasing target in combat
|
|
44529
|
+
* ```
|
|
44530
|
+
* NativeDB Introduced: v1180
|
|
44531
|
+
* ```
|
|
44532
|
+
* @param vehicle Helicopter for which the combat offset is being set.
|
|
44533
|
+
* @param x Offset along the X-axis (left/right) relative to the helicopter's current position and orientation
|
|
44534
|
+
* @param y Offset along the Y-axis (forward/backward) relative to the helicopter's current position and orientation
|
|
44535
|
+
* @param z Offset along the Z-axis (up/down) relative to the helicopter's current position and orientation.
|
|
44536
|
+
*/
|
|
44537
|
+
declare function SetHeliCombatOffset(vehicle: number, x: number, y: number, z: number): void;
|
|
44538
|
+
/**
|
|
44539
|
+
* Set a specific offset for helis chasing target in combat
|
|
44540
|
+
* ```
|
|
44541
|
+
* NativeDB Introduced: v1180
|
|
44542
|
+
* ```
|
|
44543
|
+
* @param vehicle Helicopter for which the combat offset is being set.
|
|
44544
|
+
* @param x Offset along the X-axis (left/right) relative to the helicopter's current position and orientation
|
|
44545
|
+
* @param y Offset along the Y-axis (forward/backward) relative to the helicopter's current position and orientation
|
|
44546
|
+
* @param z Offset along the Z-axis (up/down) relative to the helicopter's current position and orientation.
|
|
44547
|
+
*/
|
|
44548
|
+
declare function N_0x0a3f820a9a9a9ac5(vehicle: number, x: number, y: number, z: number): void;
|
|
44549
|
+
|
|
44467
44550
|
/**
|
|
44468
44551
|
* _SET_HELI_MAIN_ROTOR_HEALTH
|
|
44469
44552
|
*/
|
|
@@ -44815,8 +44898,19 @@ declare function N_0x504dfe62a1692296(toggle: boolean): void;
|
|
|
44815
44898
|
* ```
|
|
44816
44899
|
* NativeDB Introduced: v2189
|
|
44817
44900
|
* ```
|
|
44901
|
+
* @param islandName The name of the island to be enabled or disabled.
|
|
44902
|
+
* @param toggle A boolean value where `true` enables the island and `false` disables it.
|
|
44903
|
+
*/
|
|
44904
|
+
declare function SetIslandEnabled(islandName: string, toggle: boolean): void;
|
|
44905
|
+
/**
|
|
44906
|
+
* Enables the specified island. For more information, see islandhopper.meta
|
|
44907
|
+
* ```
|
|
44908
|
+
* NativeDB Introduced: v2189
|
|
44909
|
+
* ```
|
|
44910
|
+
* @param islandName The name of the island to be enabled or disabled.
|
|
44911
|
+
* @param toggle A boolean value where `true` enables the island and `false` disables it.
|
|
44818
44912
|
*/
|
|
44819
|
-
declare function SetIslandHopperEnabled(
|
|
44913
|
+
declare function SetIslandHopperEnabled(islandName: string, toggle: boolean): void;
|
|
44820
44914
|
|
|
44821
44915
|
/**
|
|
44822
44916
|
* SET_LAST_DRIVEN_VEHICLE
|
|
@@ -45130,7 +45224,21 @@ declare function KeyHudColour(toggle: boolean, ped: number): void;
|
|
|
45130
45224
|
declare function SetMinimapOverlayDisplay(miniMap: number, x: number, y: number, xScale: number, yScale: number, alpha: number): void;
|
|
45131
45225
|
|
|
45132
45226
|
/**
|
|
45227
|
+
* Enables or disables the sonar sweep animation on the minimap.
|
|
45228
|
+
* ```
|
|
45229
|
+
* NativeDB Introduced: v2189
|
|
45230
|
+
* ```
|
|
45231
|
+
* @param toggle A boolean value where `true` activates the sonar sweep animation on the minimap, and `false` turns it off.
|
|
45232
|
+
* @return This native does not return any value.
|
|
45233
|
+
*/
|
|
45234
|
+
declare function SetMinimapSonarSweep(toggle: boolean): void;
|
|
45235
|
+
/**
|
|
45236
|
+
* Enables or disables the sonar sweep animation on the minimap.
|
|
45237
|
+
* ```
|
|
45133
45238
|
* NativeDB Introduced: v2189
|
|
45239
|
+
* ```
|
|
45240
|
+
* @param toggle A boolean value where `true` activates the sonar sweep animation on the minimap, and `false` turns it off.
|
|
45241
|
+
* @return This native does not return any value.
|
|
45134
45242
|
*/
|
|
45135
45243
|
declare function SetMinimapSonarEnabled(toggle: boolean): void;
|
|
45136
45244
|
|
|
@@ -45904,6 +46012,21 @@ declare function N_0x971da0055324d033(object: number, textureVariation: number):
|
|
|
45904
46012
|
*/
|
|
45905
46013
|
declare function SetObjectTextureVariant(object: number, textureVariation: number): void;
|
|
45906
46014
|
|
|
46015
|
+
/**
|
|
46016
|
+
* Enables or disables the opening of a vehicle's rear doors in the event of a sticky bomb explosion. This native is effective for armored vehicles, such as the Stockade (Brinks vehicle), allowing the rear doors to be opened through controlled explosions, which might otherwise remain locked due to the vehicle nature.
|
|
46017
|
+
* @param vehicle The vehicle to apply this setting to.
|
|
46018
|
+
* @param toggle A boolean value where `true` allows the rear doors to open upon explosion, and `false` prevents them from opening.
|
|
46019
|
+
* @return This native does not return any value.
|
|
46020
|
+
*/
|
|
46021
|
+
declare function SetOpenRearDoorsOnExplosion(vehicle: number, toggle: boolean): void;
|
|
46022
|
+
/**
|
|
46023
|
+
* Enables or disables the opening of a vehicle's rear doors in the event of a sticky bomb explosion. This native is effective for armored vehicles, such as the Stockade (Brinks vehicle), allowing the rear doors to be opened through controlled explosions, which might otherwise remain locked due to the vehicle nature.
|
|
46024
|
+
* @param vehicle The vehicle to apply this setting to.
|
|
46025
|
+
* @param toggle A boolean value where `true` allows the rear doors to open upon explosion, and `false` prevents them from opening.
|
|
46026
|
+
* @return This native does not return any value.
|
|
46027
|
+
*/
|
|
46028
|
+
declare function N_0x1b212b26dd3c04df(vehicle: number, toggle: boolean): void;
|
|
46029
|
+
|
|
45907
46030
|
/**
|
|
45908
46031
|
* Set state to true to extend the wings, false to retract them.
|
|
45909
46032
|
* @param vehicle The vehicle (tested with oppressor only)
|
|
@@ -48260,6 +48383,33 @@ declare function SetPedToRagdoll(ped: number, time1: number, time2: number, ragd
|
|
|
48260
48383
|
*/
|
|
48261
48384
|
declare function SetPedToRagdollWithFall(ped: number, time: number, p2: number, ragdollType: number, x: number, y: number, z: number, p7: number, p8: number, p9: number, p10: number, p11: number, p12: number, p13: number): boolean;
|
|
48262
48385
|
|
|
48386
|
+
/**
|
|
48387
|
+
* Purpose: The game's default values for these make shooting while traveling Left quite a bit slower than shooting while traveling right (This could be a game-balance thing?)
|
|
48388
|
+
* Default Min: -45 Degrees
|
|
48389
|
+
* Default Max: 135 Degrees
|
|
48390
|
+
* ```
|
|
48391
|
+
* \ ,- ~ ||~ - ,
|
|
48392
|
+
* , ' \ x x ' ,
|
|
48393
|
+
* ```
|
|
48394
|
+
* , \ x x x ,
|
|
48395
|
+
* , \ x x ,
|
|
48396
|
+
* , \ x x ,
|
|
48397
|
+
* , \ x ,
|
|
48398
|
+
* , \ x ,
|
|
48399
|
+
* , \ x x ,
|
|
48400
|
+
* , \ x ,
|
|
48401
|
+
* , , '
|
|
48402
|
+
* ' - , \_ \_ \_ , ' \\
|
|
48403
|
+
* If the transition angle is within the shaded portion (x), there will be no transition(Quicker)
|
|
48404
|
+
* The angle corresponds to where you are looking(North on the circle) vs. the heading of your Ped.
|
|
48405
|
+
* Note: For some reason,
|
|
48406
|
+
* You can set these values to whatever you'd like with this native, but keep in mind that the transitional spin is only clockwise for some reason.
|
|
48407
|
+
* I'd personally recommend something like -135/135
|
|
48408
|
+
* @param min Leftside angle on the above diagram
|
|
48409
|
+
* @param max Rightside angle on the above diagram
|
|
48410
|
+
*/
|
|
48411
|
+
declare function SetPedTurningThresholds(min: number, max: number): void;
|
|
48412
|
+
|
|
48263
48413
|
/**
|
|
48264
48414
|
* p2 is usually -1 in the scripts. action is either 0 or "DEFAULT_ACTION".
|
|
48265
48415
|
*/
|
|
@@ -48491,6 +48641,65 @@ declare function SetPlaneResistToExplosion(vehicle: number, toggle: boolean): vo
|
|
|
48491
48641
|
*/
|
|
48492
48642
|
declare function N_0xe16142b94664defd(vehicle: number, toggle: boolean): void;
|
|
48493
48643
|
|
|
48644
|
+
/**
|
|
48645
|
+
* Adjusts the scale of damage applied to a specified section of a plane.
|
|
48646
|
+
* In the decompiled scripts the `damageScale` is always set to `0f` (maybe to disable damages on the specified section)
|
|
48647
|
+
* ```cpp
|
|
48648
|
+
* enum ePlaneDamageSection {
|
|
48649
|
+
* WING_L = 0,
|
|
48650
|
+
* WING_R = 1,
|
|
48651
|
+
* TAIL = 2,
|
|
48652
|
+
* ENGINE_L = 3,
|
|
48653
|
+
* ENGINE_R = 4,
|
|
48654
|
+
* ELEVATOR_L = 5,
|
|
48655
|
+
* ELEVATOR_R = 6,
|
|
48656
|
+
* AILERON_L = 7,
|
|
48657
|
+
* AILERON_R = 8,
|
|
48658
|
+
* RUDDER = 9,
|
|
48659
|
+
* RUDDER_2 = 10,
|
|
48660
|
+
* AIRBRAKE_L = 11,
|
|
48661
|
+
* AIRBRAKE_R = 12
|
|
48662
|
+
* }
|
|
48663
|
+
* ```
|
|
48664
|
+
* ```
|
|
48665
|
+
* NativeDB Introduced: v1290
|
|
48666
|
+
* ```
|
|
48667
|
+
* @param vehicle Plane to which the damage scale adjustment will be applied.
|
|
48668
|
+
* @param damageSection Specific section of the plane, as defined in the `ePlaneDamageSection` enum, where the damage scale will be adjusted.
|
|
48669
|
+
* @param damageScale A float value representing the scale of damage to be applied to the specified section.
|
|
48670
|
+
* @return This native does not return any value.
|
|
48671
|
+
*/
|
|
48672
|
+
declare function SetPlaneSectionDamageScale(vehicle: number, damageSection: number, damageScale: number): void;
|
|
48673
|
+
/**
|
|
48674
|
+
* Adjusts the scale of damage applied to a specified section of a plane.
|
|
48675
|
+
* In the decompiled scripts the `damageScale` is always set to `0f` (maybe to disable damages on the specified section)
|
|
48676
|
+
* ```cpp
|
|
48677
|
+
* enum ePlaneDamageSection {
|
|
48678
|
+
* WING_L = 0,
|
|
48679
|
+
* WING_R = 1,
|
|
48680
|
+
* TAIL = 2,
|
|
48681
|
+
* ENGINE_L = 3,
|
|
48682
|
+
* ENGINE_R = 4,
|
|
48683
|
+
* ELEVATOR_L = 5,
|
|
48684
|
+
* ELEVATOR_R = 6,
|
|
48685
|
+
* AILERON_L = 7,
|
|
48686
|
+
* AILERON_R = 8,
|
|
48687
|
+
* RUDDER = 9,
|
|
48688
|
+
* RUDDER_2 = 10,
|
|
48689
|
+
* AIRBRAKE_L = 11,
|
|
48690
|
+
* AIRBRAKE_R = 12
|
|
48691
|
+
* }
|
|
48692
|
+
* ```
|
|
48693
|
+
* ```
|
|
48694
|
+
* NativeDB Introduced: v1290
|
|
48695
|
+
* ```
|
|
48696
|
+
* @param vehicle Plane to which the damage scale adjustment will be applied.
|
|
48697
|
+
* @param damageSection Specific section of the plane, as defined in the `ePlaneDamageSection` enum, where the damage scale will be adjusted.
|
|
48698
|
+
* @param damageScale A float value representing the scale of damage to be applied to the specified section.
|
|
48699
|
+
* @return This native does not return any value.
|
|
48700
|
+
*/
|
|
48701
|
+
declare function N_0x0bbb9a7a8ffe931b(vehicle: number, damageSection: number, damageScale: number): void;
|
|
48702
|
+
|
|
48494
48703
|
/**
|
|
48495
48704
|
* This native sets the turbulence multiplier. It only works for planes.
|
|
48496
48705
|
* 0.0 = no turbulence at all.
|
|
@@ -50490,14 +50699,6 @@ declare function SetTimecycleModifierStrength(strength: number): void;
|
|
|
50490
50699
|
*/
|
|
50491
50700
|
declare function SetTimecycleModifierVar(modifierName: string, varName: string, value1: number, value2: number): void;
|
|
50492
50701
|
|
|
50493
|
-
/**
|
|
50494
|
-
* Toggles the Cayo Perico map.
|
|
50495
|
-
* ```
|
|
50496
|
-
* NativeDB Introduced: v2189
|
|
50497
|
-
* ```
|
|
50498
|
-
*/
|
|
50499
|
-
declare function SetToggleMinimapHeistIsland(toggle: boolean): void;
|
|
50500
|
-
|
|
50501
50702
|
/**
|
|
50502
50703
|
* SET_TRACKED_POINT_INFO
|
|
50503
50704
|
*/
|
|
@@ -50800,6 +51001,25 @@ declare function SetUseHigherVehicleJumpForce(vehicle: number, toggle: boolean):
|
|
|
50800
51001
|
*/
|
|
50801
51002
|
declare function N_0xf06a16ca55d138d8(vehicle: number, toggle: boolean): void;
|
|
50802
51003
|
|
|
51004
|
+
/**
|
|
51005
|
+
* Switches the display of the in-game minimap to the Cayo Perico map. This native needs to be called every frame to maintain the toggled state effectively.
|
|
51006
|
+
* ```
|
|
51007
|
+
* NativeDB Introduced: v2189
|
|
51008
|
+
* ```
|
|
51009
|
+
* @param toggle A boolean value where `true` switches the minimap to the Cayo Perico map, and `false` reverts it to the standard map.
|
|
51010
|
+
* @return This native does not return any value.
|
|
51011
|
+
*/
|
|
51012
|
+
declare function SetUseIslandMap(toggle: boolean): void;
|
|
51013
|
+
/**
|
|
51014
|
+
* Switches the display of the in-game minimap to the Cayo Perico map. This native needs to be called every frame to maintain the toggled state effectively.
|
|
51015
|
+
* ```
|
|
51016
|
+
* NativeDB Introduced: v2189
|
|
51017
|
+
* ```
|
|
51018
|
+
* @param toggle A boolean value where `true` switches the minimap to the Cayo Perico map, and `false` reverts it to the standard map.
|
|
51019
|
+
* @return This native does not return any value.
|
|
51020
|
+
*/
|
|
51021
|
+
declare function SetToggleMinimapHeistIsland(toggle: boolean): void;
|
|
51022
|
+
|
|
50803
51023
|
/**
|
|
50804
51024
|
* Sets a global mode which makes the pause menu map show 'Destination' instead of 'Waypoint' in the key legend on the
|
|
50805
51025
|
* bottom of the screen.
|
|
@@ -50874,6 +51094,19 @@ declare function N_0x3e45765f3fbb582f(vehicle: number): void;
|
|
|
50874
51094
|
*/
|
|
50875
51095
|
declare function SetVehRadioStation(vehicle: number, radioStation: string): void;
|
|
50876
51096
|
|
|
51097
|
+
/**
|
|
51098
|
+
* This native is used to simulate a high-speed impact for a vehicle when it collides with a breakable object (frag). It's particularly useful in scripted sequences where a vehicle is required to break through a barrier but might not actually be moving at a sufficient speed to do so realistically. Note that this setting is temporary and will reset after one frame, so it needs to be called every frame for a lasting effect.
|
|
51099
|
+
* @param vehicle The vehicle to be affected by this setting.
|
|
51100
|
+
* @param actHighSpeed A boolean flag. Set to `true` to make the vehicle act as if it's at high speed for the current frame
|
|
51101
|
+
*/
|
|
51102
|
+
declare function SetVehicleActAsIfHighSpeedForFragSmashing(vehicle: number, actHighSpeed: boolean): void;
|
|
51103
|
+
/**
|
|
51104
|
+
* This native is used to simulate a high-speed impact for a vehicle when it collides with a breakable object (frag). It's particularly useful in scripted sequences where a vehicle is required to break through a barrier but might not actually be moving at a sufficient speed to do so realistically. Note that this setting is temporary and will reset after one frame, so it needs to be called every frame for a lasting effect.
|
|
51105
|
+
* @param vehicle The vehicle to be affected by this setting.
|
|
51106
|
+
* @param actHighSpeed A boolean flag. Set to `true` to make the vehicle act as if it's at high speed for the current frame
|
|
51107
|
+
*/
|
|
51108
|
+
declare function N_0x1f9fb66f3a3842d2(vehicle: number, actHighSpeed: boolean): void;
|
|
51109
|
+
|
|
50877
51110
|
/**
|
|
50878
51111
|
* SET_VEHICLE_ACTIVE_DURING_PLAYBACK
|
|
50879
51112
|
*/
|
|
@@ -51738,6 +51971,21 @@ declare function SetPedTargettableVehicleDestroy(vehicle: number, doorIndex: num
|
|
|
51738
51971
|
*/
|
|
51739
51972
|
declare function SetVehicleDoorDestroyType(vehicle: number, doorIndex: number, doorLockStatus: number): void;
|
|
51740
51973
|
|
|
51974
|
+
/**
|
|
51975
|
+
* This native sets whether a specific vehicle influences the player's wanted level when it is involved in an incident that typically triggers a wanted response, such as being marked as a "victim" vehicle.
|
|
51976
|
+
* This is particularly useful when utilizing the wanted system from GTA, and you want to prevent a vehicle from affecting the wanted level when it is stolen. In the decompiled scripts this native is only used to disable the influence of the vehicle on the wanted level.
|
|
51977
|
+
* @param vehicle The specific vehicle to be set for influencing the wanted level.
|
|
51978
|
+
* @param influenceWantedLevel A boolean value. Set to `true` to make the vehicle influence the wanted level; `false` to prevent it from doing so.
|
|
51979
|
+
*/
|
|
51980
|
+
declare function SetVehicleInfluencesWantedLevel(vehicle: number, influenceWantedLevel: boolean): void;
|
|
51981
|
+
/**
|
|
51982
|
+
* This native sets whether a specific vehicle influences the player's wanted level when it is involved in an incident that typically triggers a wanted response, such as being marked as a "victim" vehicle.
|
|
51983
|
+
* This is particularly useful when utilizing the wanted system from GTA, and you want to prevent a vehicle from affecting the wanted level when it is stolen. In the decompiled scripts this native is only used to disable the influence of the vehicle on the wanted level.
|
|
51984
|
+
* @param vehicle The specific vehicle to be set for influencing the wanted level.
|
|
51985
|
+
* @param influenceWantedLevel A boolean value. Set to `true` to make the vehicle influence the wanted level; `false` to prevent it from doing so.
|
|
51986
|
+
*/
|
|
51987
|
+
declare function N_0x0ad9e8f87ff7c16f(vehicle: number, influenceWantedLevel: boolean): void;
|
|
51988
|
+
|
|
51741
51989
|
/**
|
|
51742
51990
|
* _SET_VEHICLE_INTERIOR_COLOR
|
|
51743
51991
|
*/
|
|
@@ -52079,6 +52327,13 @@ declare function SetVehicleParachuteTextureVariatiion(vehicle: number, textureVa
|
|
|
52079
52327
|
*/
|
|
52080
52328
|
declare function SetVehiclePetrolTankHealth(vehicle: number, health: number): void;
|
|
52081
52329
|
|
|
52330
|
+
/**
|
|
52331
|
+
* Set the vehicle's pitch bias. Only works on planes.
|
|
52332
|
+
* @param vehicle Target vehicle.
|
|
52333
|
+
* @param value Pitch bias value.
|
|
52334
|
+
*/
|
|
52335
|
+
declare function SetVehiclePitchBias(vehicle: number, value: number): void;
|
|
52336
|
+
|
|
52082
52337
|
/**
|
|
52083
52338
|
* SET_VEHICLE_POPULATION_BUDGET
|
|
52084
52339
|
*/
|
|
@@ -52170,6 +52425,13 @@ declare function SetVehicleRocketBoostPercentage(vehicle: number, percentage: nu
|
|
|
52170
52425
|
*/
|
|
52171
52426
|
declare function SetVehicleRocketBoostRefillTime(vehicle: number, time: number): void;
|
|
52172
52427
|
|
|
52428
|
+
/**
|
|
52429
|
+
* Set the vehicle's roll bias. Only works on planes.
|
|
52430
|
+
* @param vehicle Target vehicle.
|
|
52431
|
+
* @param value Roll bias value.
|
|
52432
|
+
*/
|
|
52433
|
+
declare function SetVehicleRollBias(vehicle: number, value: number): void;
|
|
52434
|
+
|
|
52173
52435
|
/**
|
|
52174
52436
|
* Used to set the tornado custom (convertible) rooftop livery.
|
|
52175
52437
|
* Livery value that works for tornado custom is between 0 and 9 from what i can tell. Maybe 0-8 even.
|