@citizenfx/client 2.0.6550-1 → 2.0.6552-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.
Files changed (2) hide show
  1. package/natives_universal.d.ts +388 -214
  2. package/package.json +1 -1
@@ -1749,7 +1749,7 @@ declare function AttachCamToEntity(cam: number, entity: number, xOffset: number,
1749
1749
  /**
1750
1750
  * ATTACH_CAM_TO_PED_BONE
1751
1751
  */
1752
- declare function AttachCamToPedBone(cam: number, ped: number, boneIndex: number, x: number, y: number, z: number, heading: boolean): void;
1752
+ declare function AttachCamToPedBone(cam: number, ped: number, boneIndex: number, xOffset: number, yOffset: number, zOffset: number, isRelative: boolean): void;
1753
1753
 
1754
1754
  /**
1755
1755
  * NativeDB Introduced: v1180
@@ -1844,9 +1844,9 @@ declare function AttachEntityToCargobob(vehicle: number, entity: number, p2: num
1844
1844
  * @param collision Controls collision between the two entities (FALSE disables collision).
1845
1845
  * @param isPed Pitch doesnt work when false and roll will only work on negative numbers (only peds)
1846
1846
  * @param rotationOrder The order in which the rotation is applied. See [`GET_ENTITY_ROTATION`](#\_0xAFBD61CC738D9EB9)
1847
- * @param fixedRot If false it ignores entity vector.
1847
+ * @param syncRot If false it ignores entity rotation.
1848
1848
  */
1849
- declare function AttachEntityToEntity(entity1: number, entity2: number, boneIndex: number, xPos: number, yPos: number, zPos: number, xRot: number, yRot: number, zRot: number, p9: boolean, useSoftPinning: boolean, collision: boolean, isPed: boolean, rotationOrder: number, fixedRot: boolean): void;
1849
+ declare function AttachEntityToEntity(entity1: number, entity2: number, boneIndex: number, xPos: number, yPos: number, zPos: number, xRot: number, yRot: number, zRot: number, p9: boolean, useSoftPinning: boolean, collision: boolean, isPed: boolean, rotationOrder: number, syncRot: boolean): void;
1850
1850
 
1851
1851
  /**
1852
1852
  * breakForce is the amount of force required to break the bond.
@@ -2283,19 +2283,13 @@ declare function BeginTextCommandIsMessageDisplayed(text: string): void;
2283
2283
  declare function N_0x853648fd1063a213(text: string): void;
2284
2284
 
2285
2285
  /**
2286
- * BOOL IsContextActive(char *ctx)
2287
- * {
2288
- * BEGIN_TEXT_COMMAND_IS_THIS_HELP_MESSAGE_BEING_DISPLAYED(ctx);
2289
- * return END_TEXT_COMMAND_IS_THIS_HELP_MESSAGE_BEING_DISPLAYED(0);
2290
- * }
2286
+ * BEGIN_TEXT_COMMAND_IS_THIS_HELP_MESSAGE_BEING_DISPLAYED
2287
+ * @param labelName Text entry name. This can be created using [`AddTextEntry`](#\_0x32CA01C3).
2291
2288
  */
2292
2289
  declare function BeginTextCommandIsThisHelpMessageBeingDisplayed(labelName: string): void;
2293
2290
  /**
2294
- * BOOL IsContextActive(char *ctx)
2295
- * {
2296
- * BEGIN_TEXT_COMMAND_IS_THIS_HELP_MESSAGE_BEING_DISPLAYED(ctx);
2297
- * return END_TEXT_COMMAND_IS_THIS_HELP_MESSAGE_BEING_DISPLAYED(0);
2298
- * }
2291
+ * BEGIN_TEXT_COMMAND_IS_THIS_HELP_MESSAGE_BEING_DISPLAYED
2292
+ * @param labelName Text entry name. This can be created using [`AddTextEntry`](#\_0x32CA01C3).
2299
2293
  */
2300
2294
  declare function N_0x0a24da3a41b718f5(labelName: string): void;
2301
2295
 
@@ -3257,8 +3251,8 @@ declare function ClearAllBrokenGlass(): void;
3257
3251
  declare function ClearAllHelpMessages(): void;
3258
3252
 
3259
3253
  /**
3260
- * List of component/props ID
3261
- * gtaxscripting.blogspot.com/2016/04/gta-v-peds-component-and-props.html
3254
+ * CLEAR_ALL_PED_PROPS
3255
+ * @param ped The ped handle.
3262
3256
  */
3263
3257
  declare function ClearAllPedProps(ped: number): void;
3264
3258
 
@@ -3313,9 +3307,14 @@ declare function N_0x957838aaf91bd12d(x: number, y: number, z: number, radius: n
3313
3307
  declare function ClearAreaOfEverything(x: number, y: number, z: number, radius: number, p4: boolean, p5: boolean, p6: boolean, p7: boolean): void;
3314
3308
 
3315
3309
  /**
3316
- * flags appears to always be 0
3310
+ * Clears an area of cops at the given coordinates and radius.
3311
+ * @param x The x coordinate of where to clear cops.
3312
+ * @param y The y coordinate of where to clear cops.
3313
+ * @param z The z coordinate of where to clear cops.
3314
+ * @param radius The area radius to clear cops.
3315
+ * @param createNetEvent specifies whether a `CClearAreaEvent` event of should be created for online use.
3317
3316
  */
3318
- declare function ClearAreaOfCops(x: number, y: number, z: number, radius: number, flags: number): void;
3317
+ declare function ClearAreaOfCops(x: number, y: number, z: number, radius: number, createNetEvent: boolean): void;
3319
3318
 
3320
3319
  /**
3321
3320
  * I looked through the PC scripts that this site provides you with a link to find. It shows the last param mainly uses, (0, 2, 6, 16, and 17) so I am going to assume it is a type of flag.
@@ -3323,14 +3322,24 @@ declare function ClearAreaOfCops(x: number, y: number, z: number, radius: number
3323
3322
  declare function ClearAreaOfObjects(x: number, y: number, z: number, radius: number, flags: number): void;
3324
3323
 
3325
3324
  /**
3326
- * Example: CLEAR_AREA_OF_PEDS(0, 0, 0, 10000, 1);
3325
+ * Clears an area of peds at the given coordinates and radius.
3326
+ * @param x The x coordinate of where to clear peds.
3327
+ * @param y The y coordinate of where to clear peds.
3328
+ * @param z The z coordinate of where to clear peds.
3329
+ * @param radius The area radius to clear peds.
3330
+ * @param createNetEvent specifies whether a `CClearAreaEvent` event of should be created for online use.
3327
3331
  */
3328
- declare function ClearAreaOfPeds(x: number, y: number, z: number, radius: number, flags: number): void;
3332
+ declare function ClearAreaOfPeds(x: number, y: number, z: number, radius: number, createNetEvent: boolean): void;
3329
3333
 
3330
3334
  /**
3331
- * CLEAR_AREA_OF_PROJECTILES
3335
+ * Clears an area of projectiles at the given coordinates and radius.
3336
+ * @param x The x coordinate of where to clear projectiles.
3337
+ * @param y The y coordinate of where to clear projectiles.
3338
+ * @param z The z coordinate of where to clear projectiles.
3339
+ * @param radius The area radius to clear projectiles.
3340
+ * @param createNetEvent specifies whether a `CClearAreaEvent` event of should be created for online use.
3332
3341
  */
3333
- declare function ClearAreaOfProjectiles(x: number, y: number, z: number, radius: number, flags: number): void;
3342
+ declare function ClearAreaOfProjectiles(x: number, y: number, z: number, radius: number, createNetEvent: boolean): void;
3334
3343
 
3335
3344
  /**
3336
3345
  * Example: CLEAR_AREA_OF_VEHICLES(0, 0, 0, 10000, false, false, false, false, false);
@@ -3656,8 +3665,9 @@ declare function ClearPedParachutePackVariation(ped: number): void;
3656
3665
  declare function N_0x1280804f7cfd2d6c(ped: number): void;
3657
3666
 
3658
3667
  /**
3659
- * List of component/props ID
3660
- * gtaxscripting.blogspot.com/2016/04/gta-v-peds-component-and-props.html
3668
+ * CLEAR_PED_PROP
3669
+ * @param ped The ped handle.
3670
+ * @param propId The prop id you want to clear from the ped. Refer to [SET_PED_PROP_INDEX](#\_0x93376B65A266EB5F).
3661
3671
  */
3662
3672
  declare function ClearPedProp(ped: number, propId: number): void;
3663
3673
 
@@ -4228,8 +4238,7 @@ declare function CreateAirDefenseSphere(x: number, y: number, z: number, radius:
4228
4238
  declare function N_0x91ef34584710be99(x: number, y: number, z: number, radius: number, p4: number, p5: number, p6: number, weaponHash: string | number): number;
4229
4239
 
4230
4240
  /**
4231
- * Used for doing money drop
4232
- * Pickup hashes: pastebin.com/8EuSv2r1
4241
+ * Creates an ambient pickup given the hash. Pickup hashes can be found [here](https://gist.github.com/4mmonium/1eabfb6b3996e3aa6b9525a3eccf8a0b).
4233
4242
  */
4234
4243
  declare function CreateAmbientPickup(pickupHash: string | number, posX: number, posY: number, posZ: number, flags: number, value: number, modelHash: string | number, returnHandle: boolean, p8: boolean): number;
4235
4244
 
@@ -4260,14 +4269,8 @@ declare function CreateCam(camName: string, active: boolean): number;
4260
4269
 
4261
4270
  /**
4262
4271
  * Create a camera with the specified cam name/type, You can use `SET_CAM_` natives to manipulate the camera.
4263
- * Camera names found in the b617d scripts:
4264
- * ```
4265
- * "DEFAULT_ANIMATED_CAMERA"
4266
- * "DEFAULT_SCRIPTED_CAMERA"
4267
- * "DEFAULT_SCRIPTED_FLY_CAMERA"
4268
- * "DEFAULT_SPLINE_CAMERA"
4269
- * ```
4270
- * @param camName Is the type of the camera, is always setted to `DEFAULT_SCRIPTED_CAMERA` in Rockstar scripts and in Fivem Forum Posts
4272
+ * Take a look at [CREATE_CAM](#\_0xC3981DCE61D9E13F) if you would like to see the available camera names.
4273
+ * @param camName A string representing the camera type, the game will convert the string into a joaat hash upon native execution.
4271
4274
  * @param posX The x position of the camera (you can also send a vector3 instead of the bulk coordinates)
4272
4275
  * @param posY The y position of the camera (you can also send a vector3 instead of the bulk coordinates)
4273
4276
  * @param posZ The z position of the camera (you can also send a vector3 instead of the bulk coordinates)
@@ -4275,6 +4278,8 @@ declare function CreateCam(camName: string, active: boolean): number;
4275
4278
  * @param rotY The y rotation of the camera
4276
4279
  * @param rotZ The z rotation of the camera
4277
4280
  * @param fov The Field Of View of the camera, is the observable world that is seen
4281
+ * @param active Set to true if you wish to make this new camera the active camera.
4282
+ * @param rotationOrder The order of rotation, see [`GET_ENTITY_ROTATION`](#\_0xAFBD61CC738D9EB9)
4278
4283
  * @return A camera handle.
4279
4284
  */
4280
4285
  declare function CreateCamWithParams(camName: string, posX: number, posY: number, posZ: number, rotX: number, rotY: number, rotZ: number, fov: number, active: boolean, rotationOrder: number): number;
@@ -4287,7 +4292,7 @@ declare function CreateCamera(camHash: string | number, active: boolean): number
4287
4292
  /**
4288
4293
  * CAM::\_GET_GAMEPLAY_CAM_COORDS can be used instead of posX,Y,Z\
4289
4294
  * CAM::\_GET_GAMEPLAY_CAM_ROT can be used instead of rotX,Y,Z\
4290
- * CAM::\_80EC114669DAEFF4() can be used instead of p7 (Possible p7 is FOV parameter. )\
4295
+ * CAM::\_GET_FINAL_RENDERED_CAM_FOV can be used instead of p7 (Possible p7 is FOV parameter. )\
4291
4296
  * rotationOrder is 2 usually
4292
4297
  */
4293
4298
  declare function CreateCameraWithParams(camHash: string | number, posX: number, posY: number, posZ: number, rotX: number, rotY: number, rotZ: number, fov: number, active: boolean, rotationOrder: number): number;
@@ -4466,13 +4471,19 @@ declare function CreateIncidentWithEntity(dispatchService: number, ped: number,
4466
4471
  declare function CreateItemset(distri: boolean): number;
4467
4472
 
4468
4473
  /**
4469
- * Train models must be [requested](#\_0x963D27A58DF860AC) before use. See trains.xml for freight and metro variations.
4474
+ * Train models must be [requested](#\_0x963D27A58DF860AC) before use. See trains.xml (located in `Grand Theft Auto V\update\update.rpf\common\data\levels\gta5\trains.xml`) for freight and metro variations.
4475
+ * Model names to request can be found by searching `model_name` in the file.
4476
+ * The `Lua` usage example provided down below has been provided in such way so users can test each and every train variation.
4477
+ * ### Newly added parameters (seen in 2372 build)
4470
4478
  * ```
4471
- * NativeDB Added Parameter 6: Any p5
4472
- * NativeDB Added Parameter 7: Any p6
4479
+ * NativeDB Added Parameter 6: BOOL isNetwork
4480
+ * NativeDB Added Parameter 7: BOOL netMissionEntity
4473
4481
  * ```
4482
+ * * **isNetwork**: Whether to create a network object for the train. If false, the train exists only locally.
4483
+ * * **netMissionEntity**: Whether to register the train as pinned to the script host in the R\* network model.
4474
4484
  * ### Train Models:
4475
4485
  * * freight
4486
+ * ### Carriage Models:
4476
4487
  * * freightcar
4477
4488
  * * freightcar2 (Added v2372)
4478
4489
  * * freightcont1
@@ -4480,6 +4491,16 @@ declare function CreateItemset(distri: boolean): number;
4480
4491
  * * freightgrain
4481
4492
  * * metrotrain
4482
4493
  * * tankercar
4494
+ * ### Some train variations (default from trains.xml as of build 2372)
4495
+ * * 17. Very long train and freight variation.
4496
+ * * 18. Freight train only.
4497
+ * * 25. Double metro train (with both models flipped opposite to each other). This used to be `24` before the 2372 build.
4498
+ * @param variation The variation id, these can range from 0 to 25 as of build 2372.
4499
+ * @param x Spawn coordinate X component.
4500
+ * @param y Spawn coordinate Y component.
4501
+ * @param z Spawn coordinate Z component.
4502
+ * @param direction The direction in which the train will go (true or false)
4503
+ * @return A script handle (fwScriptGuid index) for the train, or 0 if the train failed to be created.
4483
4504
  */
4484
4505
  declare function CreateMissionTrain(variation: number, x: number, y: number, z: number, direction: boolean): number;
4485
4506
 
@@ -4734,7 +4755,7 @@ declare function CreatePickUpRopeForCargobob(cargobob: number, state: number): v
4734
4755
  declare function EnableCargobobHook(cargobob: number, state: number): void;
4735
4756
 
4736
4757
  /**
4737
- * Pickup hashes: pastebin.com/8EuSv2r1
4758
+ * Pickup hashes can be found [here](https://gist.github.com/4mmonium/1eabfb6b3996e3aa6b9525a3eccf8a0b).
4738
4759
  */
4739
4760
  declare function CreatePickup(pickupHash: string | number, posX: number, posY: number, posZ: number, p4: number, value: number, p6: boolean, modelHash: string | number): number;
4740
4761
 
@@ -4747,7 +4768,7 @@ declare function CreatePickup(pickupHash: string | number, posX: number, posY: n
4747
4768
  declare function CreatePickupRotate(pickupHash: string | number, posX: number, posY: number, posZ: number, rotX: number, rotY: number, rotZ: number, flag: number, amount: number, p9: number, p10: boolean, modelHash: string | number): number;
4748
4769
 
4749
4770
  /**
4750
- * Pickup hashes: pastebin.com/8EuSv2r1
4771
+ * Pickup hashes can be found [here](https://gist.github.com/4mmonium/1eabfb6b3996e3aa6b9525a3eccf8a0b).
4751
4772
  */
4752
4773
  declare function CreatePortablePickup(pickupHash: string | number, x: number, y: number, z: number, placeOnGround: boolean, modelHash: string | number): number;
4753
4774
 
@@ -5535,7 +5556,7 @@ declare function DeleteFunctionReference(referenceIdentity: string): void;
5535
5556
  declare function DeleteIncident(incidentId: number): void;
5536
5557
 
5537
5558
  /**
5538
- * DELETE_MISSION_TRAIN
5559
+ * Used to delete mission trains created with [`CREATE_MISSION_TRAIN`](#\_0x63C6CCA8E68AE8C8).
5539
5560
  */
5540
5561
  declare function DeleteMissionTrain(train: number): void;
5541
5562
 
@@ -5877,7 +5898,8 @@ declare function DisablePlaneAileron(vehicle: number, p1: boolean, p2: boolean):
5877
5898
  declare function DisablePlayerFiring(player: number, toggle: boolean): void;
5878
5899
 
5879
5900
  /**
5880
- * DISABLE_PLAYER_VEHICLE_REWARDS
5901
+ * Disables vehicle rewards for the current frame.
5902
+ * @param player The player to disable rewards
5881
5903
  */
5882
5904
  declare function DisablePlayerVehicleRewards(player: number): void;
5883
5905
 
@@ -6205,7 +6227,9 @@ declare function DoesBlipHaveGpsRoute(blip: number): boolean;
6205
6227
  declare function N_0xdd2238f57b977751(blip: number): boolean;
6206
6228
 
6207
6229
  /**
6208
- * Returns whether or not the passed camera handle exists.
6230
+ * Looks up a camera handle in the current camera pool and returns `true` if the handle is found, otherwise it returns `false`.
6231
+ * @param cam The camera handle to look for.
6232
+ * @return A boolean value representing whether the camera exists or not.
6209
6233
  */
6210
6234
  declare function DoesCamExist(cam: number): boolean;
6211
6235
 
@@ -6333,11 +6357,11 @@ declare function DoesPickupExist(pickup: number): boolean;
6333
6357
  declare function DoesPickupObjectExist(pickupObject: number): boolean;
6334
6358
 
6335
6359
  /**
6336
- * Pickup hashes: pastebin.com/8EuSv2r1
6360
+ * Pickup hashes can be found [here](https://gist.github.com/4mmonium/1eabfb6b3996e3aa6b9525a3eccf8a0b).
6337
6361
  */
6338
6362
  declare function DoesPickupOfTypeExistInArea(pickupHash: string | number, x: number, y: number, z: number, radius: number): boolean;
6339
6363
  /**
6340
- * Pickup hashes: pastebin.com/8EuSv2r1
6364
+ * Pickup hashes can be found [here](https://gist.github.com/4mmonium/1eabfb6b3996e3aa6b9525a3eccf8a0b).
6341
6365
  */
6342
6366
  declare function IsPickupWithinRadius(pickupHash: string | number, x: number, y: number, z: number, radius: number): boolean;
6343
6367
 
@@ -6816,9 +6840,19 @@ declare function DoorSystemSetSpringRemoved(doorHash: string | number, removed:
6816
6840
  declare function N_0xc485e07e4f0b7958(doorHash: string | number, removed: boolean, requestDoor: boolean, forceUpdate: boolean): void;
6817
6841
 
6818
6842
  /**
6819
- * NativeDB Introduced: v1290
6843
+ * Must be called each frame, will play at specified position on screen when called with [`_PLAY_BINK_MOVIE`](#\_0x70D2CC8A542A973C)
6844
+ * @param binkMovie The movie to be drawn (from [`_SET_BINK_MOVIE`](#\_0x338D9F609FD632DB)).
6845
+ * @param posX The centered x position of the movie (0.0 - 1.0).
6846
+ * @param posY The centered y position of the movie (0.0 - 1.0).
6847
+ * @param scaleX The x scale of the movie (0.0 - 1.0).
6848
+ * @param scaleY The y scale of the movie (0.0 - 1.0).
6849
+ * @param rotation The rotation of the movie (0.0 - 360.0).
6850
+ * @param r The red value of the movie (0 - 255).
6851
+ * @param g The green value of the movie (0 - 255).
6852
+ * @param b The blue value of the movie (0 - 255).
6853
+ * @param a The alpha value of the movie (0 - 255).
6820
6854
  */
6821
- declare function DrawBinkMovie(binkMovie: number, p1: number, p2: number, p3: number, p4: number, p5: number, r: number, g: number, b: number, a: number): void;
6855
+ declare function DrawBinkMovie(binkMovie: number, posX: number, posY: number, scaleX: number, scaleY: number, rotation: number, r: number, g: number, b: number, a: number): void;
6822
6856
 
6823
6857
  /**
6824
6858
  * x,y,z = start pos
@@ -7296,6 +7330,19 @@ declare function EjectJb700Roof(vehicle: number, x: number, y: number, z: number
7296
7330
  */
7297
7331
  declare function N_0xe38cb9d7d39fdbcc(vehicle: number, x: number, y: number, z: number): void;
7298
7332
 
7333
+ /**
7334
+ * Will disable a plane or a helicopter's need to swerve around object in its heightmap when using TASK_PLANE_MISSION or other AI / Pilot behavior. Will ensure plane flys directly to it's destination or die trying! This native does NOT need to be called every frame, but instead, just called once on the vehicle (NOT THE PED) you're trying to disable avoidance for!
7335
+ * @param vehicle The vehicle handle to toggle obstacle avoidance for.
7336
+ * @param avoidObstacles `true` / `false` to enable/disable heightmap obstacle avoidance respectively!
7337
+ */
7338
+ declare function EnableAircraftObstacleAvoidance(vehicle: number, avoidObstacles: boolean): void;
7339
+ /**
7340
+ * Will disable a plane or a helicopter's need to swerve around object in its heightmap when using TASK_PLANE_MISSION or other AI / Pilot behavior. Will ensure plane flys directly to it's destination or die trying! This native does NOT need to be called every frame, but instead, just called once on the vehicle (NOT THE PED) you're trying to disable avoidance for!
7341
+ * @param vehicle The vehicle handle to toggle obstacle avoidance for.
7342
+ * @param avoidObstacles `true` / `false` to enable/disable heightmap obstacle avoidance respectively!
7343
+ */
7344
+ declare function N_0x8aa9180de2fedd45(vehicle: number, avoidObstacles: boolean): void;
7345
+
7299
7346
  /**
7300
7347
  * Creates a motion-blur sort of effect, this native does not seem to work, however by using the [`START_SCREEN_EFFECT`](#\_0x2206BF9A37B7F724) native with `"DrugsMichaelAliensFight"` as the effect parameter, you should be able to get the effect.
7301
7348
  * This native does not seem to work, however by using the [START_SCREEN_EFFECT](https://runtime.fivem.net/doc/natives/#\_0x2206BF9A37B7F724) native with "DrugsMichaelAliensFight" as the effect parameter, you should be able to get the effect.
@@ -7317,11 +7364,35 @@ declare function N_0x9dce1f0f78260875(toggle: boolean): void;
7317
7364
  declare function EnableAllControlActions(padIndex: number): void;
7318
7365
 
7319
7366
  /**
7320
- * Creates cartoon effect when Michel smokes the weed
7367
+ * If true, this native will create purple explosions upon projectile impact, add comic-like PTFX when firing a weapon, create a sound on bullet impact and have its own "blood effect".
7368
+ * If the PTFX asset "scr_rcbarry2" is not requested using ([`RequestNamedPtfxAsset`](#\_0xD821490579791273)) then this native **will not work as intended**.
7369
+ * Excerpt from fm_content_drug_lab_work.c:
7370
+ * ```
7371
+ * STREAMING::REQUEST_NAMED_PTFX_ASSET("scr_rcbarry2");
7372
+ * if (STREAMING::HAS_NAMED_PTFX_ASSET_LOADED("scr_rcbarry2"))
7373
+ * {
7374
+ * GRAPHICS::ENABLE_CLOWN_BLOOD_VFX(true);
7375
+ * AUDIO::START_AUDIO_SCENE("DLC_CM2022_DRUG_TRIP_SPRINKLERS_SCENE");
7376
+ * func_720(26);
7377
+ * }
7378
+ * ```
7379
+ * @param toggle Whether to toggle the clown VFX on or off.
7321
7380
  */
7322
7381
  declare function EnableClownBloodVfx(toggle: boolean): void;
7323
7382
  /**
7324
- * Creates cartoon effect when Michel smokes the weed
7383
+ * If true, this native will create purple explosions upon projectile impact, add comic-like PTFX when firing a weapon, create a sound on bullet impact and have its own "blood effect".
7384
+ * If the PTFX asset "scr_rcbarry2" is not requested using ([`RequestNamedPtfxAsset`](#\_0xD821490579791273)) then this native **will not work as intended**.
7385
+ * Excerpt from fm_content_drug_lab_work.c:
7386
+ * ```
7387
+ * STREAMING::REQUEST_NAMED_PTFX_ASSET("scr_rcbarry2");
7388
+ * if (STREAMING::HAS_NAMED_PTFX_ASSET_LOADED("scr_rcbarry2"))
7389
+ * {
7390
+ * GRAPHICS::ENABLE_CLOWN_BLOOD_VFX(true);
7391
+ * AUDIO::START_AUDIO_SCENE("DLC_CM2022_DRUG_TRIP_SPRINKLERS_SCENE");
7392
+ * func_720(26);
7393
+ * }
7394
+ * ```
7395
+ * @param toggle Whether to toggle the clown VFX on or off.
7325
7396
  */
7326
7397
  declare function SetCameraEndtime(toggle: boolean): void;
7327
7398
 
@@ -7676,18 +7747,18 @@ declare function N_0xfcc75460aba29378(): void;
7676
7747
 
7677
7748
  /**
7678
7749
  * END_TEXT_COMMAND_DISPLAY_HELP
7679
- * @param shape 0 for a normal rectangle shape, 1-2 has rounded edges.
7680
- * @param loop if this is true, the message will stay forever unless you call ClearHelp
7681
- * @param beep if this is true, the beeping sound will play
7682
- * @param duration duration in ms of how long this help message should display for. -1 for default
7750
+ * @param shape 0 for a normal rectangle shape, 1 and 2 has rounded edges, and can be used for floating help text hud component `FLOATING_HELP_TEXT_1` and `FLOATING_HELP_TEXT_2`. Use 1 for `FLOATING_HELP_TEXT_1` and 2 for `FLOATING_HELP_TEXT_2`, otherwise the help text will be reset to a normal help text on the top left corner on your screen.
7751
+ * @param loop If this is true, the message will stay forever unless you call [`CLEAR_ALL_HELP_MESSAGES`](#\_0x6178F68A87A4D3A0).
7752
+ * @param beep If this is true, the beeping sound will play. Beeping sound name is `INFO` in sound set `HUD_FRONTEND_DEFAULT_SOUNDSET`.
7753
+ * @param duration Duration in ms of how long this help message should display for. -1 for default.
7683
7754
  */
7684
7755
  declare function EndTextCommandDisplayHelp(shape: number, loop: boolean, beep: boolean, duration: number): void;
7685
7756
  /**
7686
7757
  * END_TEXT_COMMAND_DISPLAY_HELP
7687
- * @param shape 0 for a normal rectangle shape, 1-2 has rounded edges.
7688
- * @param loop if this is true, the message will stay forever unless you call ClearHelp
7689
- * @param beep if this is true, the beeping sound will play
7690
- * @param duration duration in ms of how long this help message should display for. -1 for default
7758
+ * @param shape 0 for a normal rectangle shape, 1 and 2 has rounded edges, and can be used for floating help text hud component `FLOATING_HELP_TEXT_1` and `FLOATING_HELP_TEXT_2`. Use 1 for `FLOATING_HELP_TEXT_1` and 2 for `FLOATING_HELP_TEXT_2`, otherwise the help text will be reset to a normal help text on the top left corner on your screen.
7759
+ * @param loop If this is true, the message will stay forever unless you call [`CLEAR_ALL_HELP_MESSAGES`](#\_0x6178F68A87A4D3A0).
7760
+ * @param beep If this is true, the beeping sound will play. Beeping sound name is `INFO` in sound set `HUD_FRONTEND_DEFAULT_SOUNDSET`.
7761
+ * @param duration Duration in ms of how long this help message should display for. -1 for default.
7691
7762
  */
7692
7763
  declare function DisplayHelpTextFromStringLabel(shape: number, loop: boolean, beep: boolean, duration: number): void;
7693
7764
 
@@ -7731,13 +7802,33 @@ declare function EndTextCommandIsMessageDisplayed(): boolean;
7731
7802
  declare function N_0x8a9ba1ab3e237613(): boolean;
7732
7803
 
7733
7804
  /**
7734
- * END_TEXT_COMMAND_IS_THIS_HELP_MESSAGE_BEING_DISPLAYED
7805
+ * Returns whether a specific help message is being displayed or not.
7806
+ * ```cpp
7807
+ * enum HudIndexes {
7808
+ * HELP_TEXT = 0,
7809
+ * FLOATING_HELP_TEXT_1 = 1,
7810
+ * FLOATING_HELP_TEXT_2 = 2,
7811
+ * }
7812
+ * ```
7813
+ * @param hudIndex The hud index for help message.
7814
+ * @return `true`: Indicates if the specific help message has been displayed.\
7815
+ `false`: Indicates that the specific help message is still being displayed.
7735
7816
  */
7736
- declare function EndTextCommandIsThisHelpMessageBeingDisplayed(p0: number): boolean;
7817
+ declare function EndTextCommandIsThisHelpMessageBeingDisplayed(hudIndex: number): boolean;
7737
7818
  /**
7738
- * END_TEXT_COMMAND_IS_THIS_HELP_MESSAGE_BEING_DISPLAYED
7819
+ * Returns whether a specific help message is being displayed or not.
7820
+ * ```cpp
7821
+ * enum HudIndexes {
7822
+ * HELP_TEXT = 0,
7823
+ * FLOATING_HELP_TEXT_1 = 1,
7824
+ * FLOATING_HELP_TEXT_2 = 2,
7825
+ * }
7826
+ * ```
7827
+ * @param hudIndex The hud index for help message.
7828
+ * @return `true`: Indicates if the specific help message has been displayed.\
7829
+ `false`: Indicates that the specific help message is still being displayed.
7739
7830
  */
7740
- declare function N_0x10bddbfc529428dd(p0: number): boolean;
7831
+ declare function N_0x10bddbfc529428dd(hudIndex: number): boolean;
7741
7832
 
7742
7833
  /**
7743
7834
  * END_TEXT_COMMAND_*
@@ -9477,8 +9568,8 @@ declare function GetBlipRotation(blip: number): number;
9477
9568
  declare function N_0x003e92ba477f9d7f(blip: number): number;
9478
9569
 
9479
9570
  /**
9480
- * Blips Images + IDs:
9481
- * gtaxscripting.blogspot.com/2016/05/gta-v-blips-id-and-image.html
9571
+ * Gets the sprite id of the specified blip. Blip sprite ids and images can be found [here](https://docs.fivem.net/docs/game-references/blips/).
9572
+ * @param blip The blip handle.
9482
9573
  */
9483
9574
  declare function GetBlipSprite(blip: number): number;
9484
9575
 
@@ -9622,7 +9713,10 @@ declare function GetCamNearClip(cam: number): number;
9622
9713
  declare function GetCamNearDof(cam: number): number;
9623
9714
 
9624
9715
  /**
9625
- * The last parameter, as in other "ROT" methods, is usually 2.
9716
+ * Gets a camera's rotation by handle (`cam`) lookup, outputs a `Vector3` in degrees.
9717
+ * @param cam The camera handle.
9718
+ * @param rotationOrder The order of rotation, see [`GET_ENTITY_ROTATION`](#\_0xAFBD61CC738D9EB9)
9719
+ * @return A `Vector3` representing the camera rotation in degrees.
9626
9720
  */
9627
9721
  declare function GetCamRot(cam: number, rotationOrder: number): number[];
9628
9722
 
@@ -10058,17 +10152,22 @@ declare function GetConvar(varName: string, default_: string): string;
10058
10152
  declare function GetConvarInt(varName: string, default_: number): number;
10059
10153
 
10060
10154
  /**
10061
- * ```
10155
+ * Returns the convertible state of the specified vehicle.
10156
+ * ```cpp
10062
10157
  * enum RoofState
10063
10158
  * {
10064
- * ROOFSTATE_UP = 0;
10065
- * ROOFSTATE_LOWERING,
10066
- * ROOFSTATE_DOWN,
10067
- * ROOFSTATE_RAISING
10159
+ * ROOFSTATE_UP = 0,
10160
+ * ROOFSTATE_LOWERING = 1,
10161
+ * ROOFSTATE_DOWN = 2,
10162
+ * ROOFSTATE_RAISING = 3
10068
10163
  * };
10069
10164
  * ```
10070
- * Got a "6" return value but not sure about what the value means
10071
- * 6 -> unknown (Stopped but not fully open ?)
10165
+ * @param vehicle Vehicle to get the state of
10166
+ * @return * 0 when closed/up, the vehicle is not a convertible or the vehicle is null/not provided
10167
+ * 1 when closing
10168
+ * 2 when open/down
10169
+ * 3 when opening
10170
+ * 6 unknown/unverified -- possibly stopped but not full open
10072
10171
  */
10073
10172
  declare function GetConvertibleRoofState(vehicle: number): number;
10074
10173
 
@@ -11190,7 +11289,8 @@ declare function GetForcedProp(componentHash: string | number, forcedPropIndex:
11190
11289
  declare function N_0xe1ca84ebf72e691d(componentHash: string | number, forcedPropIndex: number): [number, number, number];
11191
11290
 
11192
11291
  /**
11193
- * GET_FRAME_COUNT
11292
+ * Gets the number of the current frame being displayed.
11293
+ * @return The number of the current frame being displayed.
11194
11294
  */
11195
11295
  declare function GetFrameCount(): number;
11196
11296
 
@@ -11283,16 +11383,10 @@ declare function GetGameplayCamRelativeHeading(): number;
11283
11383
  declare function GetGameplayCamRelativePitch(): number;
11284
11384
 
11285
11385
  /**
11286
- * p0 dosen't seem to change much, I tried it with 0, 1, 2:
11287
- * 0-Pitch(X): -70.000092
11288
- * 0-Roll(Y): -0.000001
11289
- * 0-Yaw(Z): -43.886459
11290
- * 1-Pitch(X): -70.000092
11291
- * 1-Roll(Y): -0.000001
11292
- * 1-Yaw(Z): -43.886463
11293
- * 2-Pitch(X): -70.000092
11294
- * 2-Roll(Y): -0.000002
11295
- * 2-Yaw(Z): -43.886467
11386
+ * This function takes a rotation order and outputs a `Vector3` in degrees.
11387
+ * It first calls a game function to calculate these values given the rotation order and effectively multiplies those values by `180/PI`, hence degrees since the function it calls outputs radians which are then converted to degrees.
11388
+ * @param rotationOrder The order of rotation, see [`GET_ENTITY_ROTATION`](#\_0xAFBD61CC738D9EB9)
11389
+ * @return A `Vector3` representing the gameplay camera rotation in degrees.
11296
11390
  */
11297
11391
  declare function GetGameplayCamRot(rotationOrder: number): number[];
11298
11392
 
@@ -11553,7 +11647,8 @@ declare function GetHeliTailRotorHealth(vehicle: number): number;
11553
11647
  declare function GetHeliTailRotorHealth(vehicle: number): number;
11554
11648
 
11555
11649
  /**
11556
- * HUD colors and their values: pastebin.com/d9aHPbXN
11650
+ * Gets hud color RGBA parameter values by passing a hud color index (hudColorIndex).
11651
+ * HUD colors can be found [here](https://docs.fivem.net/docs/game-references/hud-colors/)
11557
11652
  */
11558
11653
  declare function GetHudColour(hudColorIndex: number): [number, number, number, number];
11559
11654
 
@@ -13047,27 +13142,32 @@ declare function GetNumberOfFreeStacksOfThisSize(stackSize: number): number;
13047
13142
  declare function GetFreeStackSlotsCount(stackSize: number): number;
13048
13143
 
13049
13144
  /**
13050
- * List of component/props ID
13051
- * gtaxscripting.blogspot.com/2016/04/gta-v-peds-component-and-props.html
13145
+ * GET_NUMBER_OF_PED_DRAWABLE_VARIATIONS
13146
+ * @param ped The ped handle.
13147
+ * @param componentId The component id you want to get the drawable variatons of. Refer to [SET_PED_COMPONENT_VARIATION](#\_0x262B14F48D29DE80)
13052
13148
  */
13053
13149
  declare function GetNumberOfPedDrawableVariations(ped: number, componentId: number): number;
13054
13150
 
13055
13151
  /**
13056
- * List of component/props ID
13057
- * gtaxscripting.blogspot.com/2016/04/gta-v-peds-component-and-props.html
13152
+ * GET_NUMBER_OF_PED_PROP_DRAWABLE_VARIATIONS
13153
+ * @param ped The ped handle.
13154
+ * @param propId The prop id you want to get the drawable variations of. Refer to [SET_PED_PROP_INDEX](#\_0x93376B65A266EB5F)
13058
13155
  */
13059
13156
  declare function GetNumberOfPedPropDrawableVariations(ped: number, propId: number): number;
13060
13157
 
13061
13158
  /**
13062
13159
  * Need to check behavior when drawableId = -1
13063
- * List of component/props ID
13064
- * gtaxscripting.blogspot.com/2016/04/gta-v-peds-component-and-props.html
13160
+ * @param ped The ped handle.
13161
+ * @param propId The prop id you want to get the texture variations of. Refer to [SET_PED_PROP_INDEX](#\_0x93376B65A266EB5F)
13162
+ * @param drawableId The drawable id of the prop you want to get the texture variations of. Refer to [GET_NUMBER_OF_PED_PROP_DRAWABLE_VARIATIONS](#\_0x5FAF9754E789FB47).
13065
13163
  */
13066
13164
  declare function GetNumberOfPedPropTextureVariations(ped: number, propId: number, drawableId: number): number;
13067
13165
 
13068
13166
  /**
13069
- * List of component/props ID
13070
- * gtaxscripting.blogspot.com/2016/04/gta-v-peds-component-and-props.html
13167
+ * GET_NUMBER_OF_PED_TEXTURE_VARIATIONS
13168
+ * @param ped The ped handle.
13169
+ * @param componentId The component id you want to get the texture variations of. Refer to [SET_PED_COMPONENT_VARIATION](#\_0x262B14F48D29DE80).
13170
+ * @param drawableId The drawable id of the component you want to get the texture variations of. Refer to [GET_NUMBER_OF_PED_PROP_DRAWABLE_VARIATIONS](#\_0x5FAF9754E789FB47).
13071
13171
  */
13072
13172
  declare function GetNumberOfPedTextureVariations(ped: number, componentId: number, drawableId: number): number;
13073
13173
 
@@ -13886,7 +13986,7 @@ declare function GetPedDiesInWater(ped: number): boolean;
13886
13986
  * 4 - Legs
13887
13987
  * 5 - Hands
13888
13988
  * 6 - Foot
13889
- * 7 - ------
13989
+ * 7 - Scarfs/Neck Accessories
13890
13990
  * 8 - Accessories 1
13891
13991
  * 9 - Accessories 2
13892
13992
  * 10- Decals
@@ -13931,24 +14031,24 @@ declare function GetPedEventData(ped: number, eventType: number, outData?: numbe
13931
14031
  declare function GetPedExtractedDisplacement(ped: number, worldSpace: boolean): number[];
13932
14032
 
13933
14033
  /**
13934
- * A getter for [\_SET_PED_EYE_COLOR](#\_0x50B56988B170AFDF). Returns -1 if fails to get.
14034
+ * A getter for [`_SET_PED_EYE_COLOR`](#\_0x50B56988B170AFDF).
13935
14035
  * @param ped The target ped
13936
14036
  * @return Returns ped's eye colour, or -1 if fails to get.
13937
14037
  */
13938
14038
  declare function GetPedEyeColor(ped: number): number;
13939
-
13940
14039
  /**
13941
14040
  * A getter for [`_SET_PED_EYE_COLOR`](#\_0x50B56988B170AFDF).
13942
14041
  * @param ped The target ped
13943
14042
  * @return Returns ped's eye colour, or -1 if fails to get.
13944
14043
  */
13945
- declare function GetPedEyeColor(ped: number): number;
14044
+ declare function N_0x76bba2cee66d47e9(ped: number): number;
14045
+
13946
14046
  /**
13947
- * A getter for [`_SET_PED_EYE_COLOR`](#\_0x50B56988B170AFDF).
14047
+ * A getter for [\_SET_PED_EYE_COLOR](#\_0x50B56988B170AFDF). Returns -1 if fails to get.
13948
14048
  * @param ped The target ped
13949
14049
  * @return Returns ped's eye colour, or -1 if fails to get.
13950
14050
  */
13951
- declare function N_0x76bba2cee66d47e9(ped: number): number;
14051
+ declare function GetPedEyeColor(ped: number): number;
13952
14052
 
13953
14053
  /**
13954
14054
  * A getter for [\_SET_PED_FACE_FEATURE](#\_0x71A5C1DBA060049E). Returns 0.0 if fails to get.
@@ -14221,8 +14321,9 @@ declare function GetPedNearbyPeds(ped: number, ignore: number): [number, number]
14221
14321
  declare function GetPedNearbyVehicles(ped: number, sizeAndVehs?: number): [number, number];
14222
14322
 
14223
14323
  /**
14224
- * List of component/props ID
14225
- * gtaxscripting.blogspot.com/2016/04/gta-v-peds-component-and-props.html
14324
+ * GET_PED_PALETTE_VARIATION
14325
+ * @param ped The ped handle.
14326
+ * @param componentId The component id to get the palette variation from. Refer to [SET_PED_COMPONENT_VARIATION](#\_0x262B14F48D29DE80).
14226
14327
  */
14227
14328
  declare function GetPedPaletteVariation(ped: number, componentId: number): number;
14228
14329
 
@@ -14252,14 +14353,16 @@ declare function GetPedParachuteState(ped: number): number;
14252
14353
  declare function GetPedParachuteTintIndex(ped: number, outTintIndex?: number): number;
14253
14354
 
14254
14355
  /**
14255
- * List of component/props ID
14256
- * gtaxscripting.blogspot.com/2016/04/gta-v-peds-component-and-props.html
14356
+ * GET_PED_PROP_INDEX
14357
+ * @param ped The ped handle.
14358
+ * @param componentId The component id to get the prop index from. Refer to [SET_PED_COMPONENT_VARIATION](#\_0x262B14F48D29DE80).
14257
14359
  */
14258
14360
  declare function GetPedPropIndex(ped: number, componentId: number): number;
14259
14361
 
14260
14362
  /**
14261
- * List of component/props ID
14262
- * gtaxscripting.blogspot.com/2016/04/gta-v-peds-component-and-props.html
14363
+ * GET_PED_PROP_TEXTURE_INDEX
14364
+ * @param ped The ped handle.
14365
+ * @param componentId The component id to get the prop texture index from. Refer to [SET_PED_COMPONENT_VARIATION](#\_0x262B14F48D29DE80).
14263
14366
  */
14264
14367
  declare function GetPedPropTextureIndex(ped: number, componentId: number): number;
14265
14368
 
@@ -14316,8 +14419,9 @@ declare function GetPedTaskCombatTarget(ped: number, p1: number): number;
14316
14419
  declare function N_0x32c27a11307b01cc(ped: number, p1: number): number;
14317
14420
 
14318
14421
  /**
14319
- * List of component/props ID
14320
- * gtaxscripting.blogspot.com/2016/04/gta-v-peds-component-and-props.html
14422
+ * GET_PED_TEXTURE_VARIATION
14423
+ * @param ped The ped handle.
14424
+ * @param componentId The component id to get the texture variation from. Refer to [SET_PED_COMPONENT_VARIATION](#\_0x262B14F48D29DE80).
14321
14425
  */
14322
14426
  declare function GetPedTextureVariation(ped: number, componentId: number): number;
14323
14427
 
@@ -14818,7 +14922,11 @@ declare function GetPlayerWeaponDefenseModifier(playerId: number): number;
14818
14922
  declare function GetPlayerWeaponDefenseModifier_2(playerId: number): number;
14819
14923
 
14820
14924
  /**
14821
- * Alternative: GET_VEHICLE_PED_IS_IN(PLAYER_PED_ID(), 1);
14925
+ * ### Warning
14926
+ * This native will return `0` if the last vehicle the player was in was destroyed.
14927
+ * ### Alternative
14928
+ * You can use [GET_VEHICLE_PED_IS_IN](#\_0x9A9112A0FE9A4713), which will actually get the last vehicle, even if it was destroyed.
14929
+ * @return A vehicle handle containing the last player's vehicle.
14822
14930
  */
14823
14931
  declare function GetPlayersLastVehicle(): number;
14824
14932
 
@@ -15510,8 +15618,21 @@ declare function GetScriptGfxPosition(x: number, y: number): [number, number];
15510
15618
  declare function N_0x6dd8f5aa635eb4b2(x: number, y: number): [number, number];
15511
15619
 
15512
15620
  /**
15513
- * Gets the status of a script-assigned task.
15514
- * taskHash: https://alloc8or.re/gta5/doc/enums/eScriptTaskHash.txt
15621
+ * Gets the status of a spesifed script-assigned task on the given ped. The return value is always an int between 0-7.
15622
+ * You can set taskHash to `SCRIPT_TASK_ANY` to check if any task is active, it will return 1 for active, 3 for no active.
15623
+ * `SCRIPT_TASK_INVALID` can be similarly used, it returns 7 if there are any active task, and 3 if there are no active tasks.
15624
+ * taskHash list: https://alloc8or.re/gta5/doc/enums/eScriptTaskHash.txt
15625
+ * Returns:
15626
+ * ```
15627
+ * 0 = WAITING_TO_START_TASK
15628
+ * 1 = PERFORMING_TASK
15629
+ * 2 = DORMANT_TASK
15630
+ * 3 = VACANT_STAGE
15631
+ * 7 = TASK_FINISHED_OR_NOT_FOUND
15632
+ * ```
15633
+ * @param ped The ped the task is running on
15634
+ * @param taskHash The hash of the task
15635
+ * @return The status of the script-assigned task.
15515
15636
  */
15516
15637
  declare function GetScriptTaskStatus(ped: number, taskHash: string | number): number;
15517
15638
 
@@ -16474,12 +16595,9 @@ declare function GetVehicleCanActivateParachute(vehicle: number): boolean;
16474
16595
  declare function CanVehicleParachuteBeActivated(vehicle: number): boolean;
16475
16596
 
16476
16597
  /**
16477
- * iVar3 = get_vehicle_cause_of_destruction(uLocal_248[iVar2]);
16478
- * if (iVar3 == joaat("weapon_stickybomb"))
16479
- * {
16480
- * func_171(726);
16481
- * iLocal_260 = 1;
16482
- * }
16598
+ * GET_VEHICLE_CAUSE_OF_DESTRUCTION
16599
+ * @param vehicle The vehicle to get the cause of destruction of.
16600
+ * @return A hash representing the destruction cause. These can be weapon hashes.
16483
16601
  */
16484
16602
  declare function GetVehicleCauseOfDestruction(vehicle: number): number;
16485
16603
 
@@ -16771,7 +16889,11 @@ declare function GetVehicleDensityMultiplier(): number;
16771
16889
  declare function GetVehicleDirtLevel(vehicle: number): number;
16772
16890
 
16773
16891
  /**
16892
+ * Checks the angle of the door mapped from 0.0 - 1.0 where 0.0 is fully closed and 1.0 is fully open.
16774
16893
  * See eDoorId declared in [`SET_VEHICLE_DOOR_SHUT`](#\_0x93D9BD300D7789E5)
16894
+ * @param vehicle Vehicle
16895
+ * @param doorIndex Index of door to check
16896
+ * @return A float representing angle of door mapped from 0.0 to 1.0
16775
16897
  */
16776
16898
  declare function GetVehicleDoorAngleRatio(vehicle: number, doorIndex: number): number;
16777
16899
 
@@ -18221,7 +18343,7 @@ declare function GetWeaponHashFromPickup(pickupHash: string | number): number;
18221
18343
  * @param weaponHash The hash of the Weapon.
18222
18344
  * @return * **Melee**: 2685387236
18223
18345
  * **Handgun**: 416676503
18224
- * **Submachine Gun**: -95776620
18346
+ * **Submachine Gun**: -957766203
18225
18347
  * **Shotgun**: 860033945
18226
18348
  * **Assault Rifle**: 970310034
18227
18349
  * **Light Machine Gun**: 1159398588
@@ -20990,8 +21112,10 @@ declare function IsPedComponentVariationGen9Exclusive(ped: number, componentId:
20990
21112
 
20991
21113
  /**
20992
21114
  * Checks if the component variation is valid, this works great for randomizing components using loops.
20993
- * List of component/props ID
20994
- * gtaxscripting.blogspot.com/2016/04/gta-v-peds-component-and-props.html
21115
+ * @param ped The ped handle.
21116
+ * @param componentId The component id to check the variation of. Refer to [SET_PED_COMPONENT_VARIATION](#\_0x262B14F48D29DE80).
21117
+ * @param drawableId The drawable id to get the component variation of. Refer to [GET_NUMBER_OF_PED_PROP_DRAWABLE_VARIATIONS](#\_0x5FAF9754E789FB47).
21118
+ * @param textureId The texture id to get the component variation of. Refer to [GET_NUMBER_OF_PED_PROP_TEXTURE_VARIATIONS](#\_0xA6E7F1CEB523E171).
20995
21119
  */
20996
21120
  declare function IsPedComponentVariationValid(ped: number, componentId: number, drawableId: number, textureId: number): boolean;
20997
21121
 
@@ -22852,7 +22976,8 @@ declare function N_0xb5cc40fbcb586380(vehicle: number): boolean;
22852
22976
  declare function IsVehicleSirenSoundOn(vehicle: number): boolean;
22853
22977
 
22854
22978
  /**
22855
- * IS_VEHICLE_SIREN_ON
22979
+ * Returns whether the vehicle's lights and sirens are on.
22980
+ * @return Returns false if siren and lights are disabled or true if they are enabled.
22856
22981
  */
22857
22982
  declare function IsVehicleSirenOn(vehicle: number): boolean;
22858
22983
 
@@ -22943,15 +23068,17 @@ declare function N_0x563b65a643ed072e(weaponHash: string | number, vehicle: numb
22943
23068
  /**
22944
23069
  * cpp
22945
23070
  * enum eWindowId {
22946
- * VEH_EXT_WINDSCREEN = 0,
22947
- * VEH_EXT_WINDSCREEN_R = 1,
22948
- * VEH_EXT_WINDOW_LF = 2,
22949
- * VEH_EXT_WINDOW_RF = 3,
22950
- * VEH_EXT_WINDOW_LR = 4,
22951
- * VEH_EXT_WINDOW_RR = 5,
22952
- * VEH_EXT_WINDOW_LM = 6,
22953
- * VEH_EXT_WINDOW_RM = 7,
23071
+ * VEH_EXT_WINDOW_LF = 0,
23072
+ * VEH_EXT_WINDOW_RF = 1,
23073
+ * VEH_EXT_WINDOW_LR = 2,
23074
+ * VEH_EXT_WINDOW_RR = 3,
23075
+ * VEH_EXT_WINDOW_LM = 4,
23076
+ * VEH_EXT_WINDOW_RM = 5,
23077
+ * VEH_EXT_WINDSCREEN = 6,
23078
+ * VEH_EXT_WINDSCREEN_R = 7,
22954
23079
  * }
23080
+ * @param vehicle The vehicle handle
23081
+ * @param windowIndex The index of the window
22955
23082
  */
22956
23083
  declare function IsVehicleWindowIntact(vehicle: number, windowIndex: number): boolean;
22957
23084
 
@@ -23005,8 +23132,7 @@ declare function IsWorldPointWithinBrainActivationRange(): boolean;
23005
23132
  declare function IsXbox360Version(): boolean;
23006
23133
 
23007
23134
  /**
23008
- * List of component/props ID
23009
- * gtaxscripting.blogspot.com/2016/04/gta-v-peds-component-and-props.html
23135
+ * KNOCK_OFF_PED_PROP
23010
23136
  */
23011
23137
  declare function KnockOffPedProp(ped: number, p1: boolean, p2: boolean, p3: boolean, p4: boolean): void;
23012
23138
 
@@ -27125,11 +27251,6 @@ declare function N_0x8989cbd7b4e82534(p0: number, p1: number, p2: number, p3: nu
27125
27251
  */
27126
27252
  declare function N_0x8a4416c0db05fa66(p0: number): boolean;
27127
27253
 
27128
- /**
27129
- * 0x8AA9180DE2FEDD45
27130
- */
27131
- declare function N_0x8aa9180de2fedd45(vehicle: number, p1: boolean): void;
27132
-
27133
27254
  /**
27134
27255
  * 0x8B0C2964BA471961
27135
27256
  * @return Hard-coded to always return 0.
@@ -38153,6 +38274,7 @@ declare function RegisterObjectScriptBrain(scriptName: string, modelHash: string
38153
38274
 
38154
38275
  /**
38155
38276
  * gtaforums.com/topic/885580-ped-headshotmugshot-txd/
38277
+ * @return The Pedheadshot handle.
38156
38278
  */
38157
38279
  declare function RegisterPedheadshot(ped: number): number;
38158
38280
 
@@ -38431,7 +38553,7 @@ declare function RemoveAllCoverBlockingAreas(): void;
38431
38553
  declare function RemoveAllPedWeapons(ped: number, p1: boolean): void;
38432
38554
 
38433
38555
  /**
38434
- * Pickup hashes: pastebin.com/8EuSv2r1
38556
+ * Pickup hashes can be found [here](https://gist.github.com/4mmonium/1eabfb6b3996e3aa6b9525a3eccf8a0b).
38435
38557
  */
38436
38558
  declare function RemoveAllPickupsOfType(pickupHash: string | number): void;
38437
38559
 
@@ -38578,7 +38700,7 @@ declare function RemoveFromItemset(p0: number, p1: number): void;
38578
38700
  declare function RemoveGroup(groupId: number): void;
38579
38701
 
38580
38702
  /**
38581
- * IPL list: pastebin.com/iNGLY32D
38703
+ * IPL list can be found [here](https://gist.github.com/4mmonium/4c8a076b5f712a7cc64666003009a2e7).
38582
38704
  */
38583
38705
  declare function RemoveIpl(iplName: string): void;
38584
38706
 
@@ -39025,34 +39147,31 @@ declare function HighlightPlacementCoords(x: number, y: number, z: number, color
39025
39147
  declare function RenderScriptCams(render: boolean, ease: boolean, easeTime: number, p3: boolean, p4: boolean): void;
39026
39148
 
39027
39149
  /**
39028
- * HUD colors and their values: pastebin.com/d9aHPbXN
39029
- * --------------------------------------------------
39030
- * makes hudColorIndex2 color into hudColorIndex color
39150
+ * Changes the hud color at a given index (hudColorIndex) by another one (hudColorIndex2).
39151
+ * HUD colors can be found [here](https://docs.fivem.net/docs/game-references/hud-colors/)
39031
39152
  */
39032
39153
  declare function ReplaceHudColour(hudColorIndex: number, hudColorIndex2: number): void;
39033
39154
  /**
39034
- * HUD colors and their values: pastebin.com/d9aHPbXN
39035
- * --------------------------------------------------
39036
- * makes hudColorIndex2 color into hudColorIndex color
39155
+ * Changes the hud color at a given index (hudColorIndex) by another one (hudColorIndex2).
39156
+ * HUD colors can be found [here](https://docs.fivem.net/docs/game-references/hud-colors/)
39037
39157
  */
39038
39158
  declare function N_0x1ccc708f0f850613(hudColorIndex: number, hudColorIndex2: number): void;
39039
39159
  /**
39040
- * HUD colors and their values: pastebin.com/d9aHPbXN
39041
- * --------------------------------------------------
39042
- * makes hudColorIndex2 color into hudColorIndex color
39160
+ * Changes the hud color at a given index (hudColorIndex) by another one (hudColorIndex2).
39161
+ * HUD colors can be found [here](https://docs.fivem.net/docs/game-references/hud-colors/)
39043
39162
  */
39044
39163
  declare function SetHudColoursSwitch(hudColorIndex: number, hudColorIndex2: number): void;
39045
39164
 
39046
39165
  /**
39047
- * HUD colors and their values: pastebin.com/d9aHPbXN
39166
+ * Hud colors can be found [here](https://docs.fivem.net/docs/game-references/hud-colors/)
39048
39167
  */
39049
39168
  declare function ReplaceHudColourWithRgba(hudColorIndex: number, r: number, g: number, b: number, a: number): void;
39050
39169
  /**
39051
- * HUD colors and their values: pastebin.com/d9aHPbXN
39170
+ * Hud colors can be found [here](https://docs.fivem.net/docs/game-references/hud-colors/)
39052
39171
  */
39053
39172
  declare function N_0xf314cf4f0211894e(hudColorIndex: number, r: number, g: number, b: number, a: number): void;
39054
39173
  /**
39055
- * HUD colors and their values: pastebin.com/d9aHPbXN
39174
+ * Hud colors can be found [here](https://docs.fivem.net/docs/game-references/hud-colors/)
39056
39175
  */
39057
39176
  declare function SetHudColour(hudColorIndex: number, r: number, g: number, b: number, a: number): void;
39058
39177
 
@@ -39913,9 +40032,11 @@ declare function N_0xe574a662acaefbb1(): void;
39913
40032
  declare function RestartScriptedConversation(): void;
39914
40033
 
39915
40034
  /**
39916
- * RESTORE_PLAYER_STAMINA
40035
+ * Adds a percentage to a players stamina
40036
+ * @param player player to restore the stamina for
40037
+ * @param percentage seems to be a percentage that ranges from 0.0 to 1.0 (1.0 being 100%)
39917
40038
  */
39918
- declare function RestorePlayerStamina(player: number, p1: number): void;
40039
+ declare function RestorePlayerStamina(player: number, percentage: number): void;
39919
40040
 
39920
40041
  /**
39921
40042
  * This function will simply bring the dead person back to life.
@@ -41293,22 +41414,28 @@ declare function SetBikeOnStand(vehicle: number, x: number, y: number): void;
41293
41414
  declare function SetBikeLeanAngle(vehicle: number, x: number, y: number): void;
41294
41415
 
41295
41416
  /**
41296
- * NativeDB Introduced: v1290
41417
+ * Creates an integer (usually 1) for a BINK movie to be called with other natives.
41418
+ * [List of all BINK movies (alphabetically ordered) as of b2802](https://gist.github.com/ItsJunction/8046f28c29ea8ff2821e9e4f933f595f)
41419
+ * @param name The BINK movie to play (with or without file extension).
41297
41420
  */
41298
41421
  declare function SetBinkMovie(name: string): number;
41299
41422
  /**
41300
- * NativeDB Introduced: v1290
41423
+ * Creates an integer (usually 1) for a BINK movie to be called with other natives.
41424
+ * [List of all BINK movies (alphabetically ordered) as of b2802](https://gist.github.com/ItsJunction/8046f28c29ea8ff2821e9e4f933f595f)
41425
+ * @param name The BINK movie to play (with or without file extension).
41301
41426
  */
41302
41427
  declare function SetBinkMovieRequested(name: string): number;
41303
41428
 
41304
41429
  /**
41305
- * In percentage: 0.0 - 100.0
41306
- * NativeDB Introduced: v1290
41430
+ * Seeks a BINK movie to a specified position.
41431
+ * @param binkMovie The movie that is being played.
41432
+ * @param progress As a percentage (0.0 - 100.0).
41307
41433
  */
41308
41434
  declare function SetBinkMovieTime(binkMovie: number, progress: number): void;
41309
41435
  /**
41310
- * In percentage: 0.0 - 100.0
41311
- * NativeDB Introduced: v1290
41436
+ * Seeks a BINK movie to a specified position.
41437
+ * @param binkMovie The movie that is being played.
41438
+ * @param progress As a percentage (0.0 - 100.0).
41312
41439
  */
41313
41440
  declare function SetBinkMovieProgress(binkMovie: number, progress: number): void;
41314
41441
 
@@ -41415,7 +41542,8 @@ declare function SetBlipBright(blip: number, toggle: boolean): void;
41415
41542
  declare function SetBlipCategory(blip: number, index: number): void;
41416
41543
 
41417
41544
  /**
41418
- * See https://docs.fivem.net/docs/game-references/blips/#BlipColors
41545
+ * SET_BLIP_COLOUR
41546
+ * @param color See [blip colors here](https://docs.fivem.net/docs/game-references/blips/#blip-colors)
41419
41547
  */
41420
41548
  declare function SetBlipColour(blip: number, color: number): void;
41421
41549
 
@@ -41823,9 +41951,12 @@ declare function SetCamNearDof(cam: number, nearDOF: number): void;
41823
41951
  declare function SetCamParams(cam: number, posX: number, posY: number, posZ: number, rotX: number, rotY: number, rotZ: number, fieldOfView: number, transitionSpeed: number, p9: number, p10: number, rotationOrder: number): void;
41824
41952
 
41825
41953
  /**
41826
- * Sets the rotation of the cam.
41827
- * Last parameter unknown.
41828
- * Last parameter seems to always be set to 2.
41954
+ * Sets the rotation of the camera.
41955
+ * @param cam The camera handle to use, in order to change the rotation
41956
+ * @param rotX Rotation on X
41957
+ * @param rotY Rotation on Y
41958
+ * @param rotZ Rotation on Z
41959
+ * @param rotationOrder The order of rotation, see [`GET_ENTITY_ROTATION`](#\_0xAFBD61CC738D9EB9)
41829
41960
  */
41830
41961
  declare function SetCamRot(cam: number, rotX: number, rotY: number, rotZ: number, rotationOrder: number): void;
41831
41962
 
@@ -44670,7 +44801,7 @@ declare function SetMinimapClipType(_type: number): void;
44670
44801
  * 2: Trevor's air port yellow lift-off markers.
44671
44802
  * 6: Vespucci Beach lifeguard building.
44672
44803
  * 15: Army base.
44673
- * [List of hud colors](https://pastebin.com/d9aHPbXN)
44804
+ * [List of hud colors](https://docs.fivem.net/docs/game-references/hud-colors/)
44674
44805
  * @param componentID The component ID to change.
44675
44806
  * @param toggle True to enable the color, false to disable the effect.
44676
44807
  * @param hudColor The hudcolor index.
@@ -45013,19 +45144,19 @@ declare function SetMpGamerHealthBarDisplay(gamerTagId: number, toggle: boolean)
45013
45144
  /**
45014
45145
  * Should be enabled as component (2). Has 0 alpha by default.
45015
45146
  * @param gamerTagId a gamerTagId obtained using for example: [CREATE_FAKE_MP_GAMER_TAG](https://runtime.fivem.net/doc/natives/?\_0xBFEFE3321A3F5015)
45016
- * @param hudColorIndex a hud color index, see the full list here: [link](pastebin.com/d9aHPbXN)
45147
+ * @param hudColorIndex a hud color index, see the full list here: [link](https://docs.fivem.net/docs/game-references/hud-colors/)
45017
45148
  */
45018
45149
  declare function SetMpGamerTagHealthBarColour(gamerTagId: number, hudColorIndex: number): void;
45019
45150
  /**
45020
45151
  * Should be enabled as component (2). Has 0 alpha by default.
45021
45152
  * @param gamerTagId a gamerTagId obtained using for example: [CREATE_FAKE_MP_GAMER_TAG](https://runtime.fivem.net/doc/natives/?\_0xBFEFE3321A3F5015)
45022
- * @param hudColorIndex a hud color index, see the full list here: [link](pastebin.com/d9aHPbXN)
45153
+ * @param hudColorIndex a hud color index, see the full list here: [link](https://docs.fivem.net/docs/game-references/hud-colors/)
45023
45154
  */
45024
45155
  declare function N_0x3158c77a7e888ab4(gamerTagId: number, hudColorIndex: number): void;
45025
45156
  /**
45026
45157
  * Should be enabled as component (2). Has 0 alpha by default.
45027
45158
  * @param gamerTagId a gamerTagId obtained using for example: [CREATE_FAKE_MP_GAMER_TAG](https://runtime.fivem.net/doc/natives/?\_0xBFEFE3321A3F5015)
45028
- * @param hudColorIndex a hud color index, see the full list here: [link](pastebin.com/d9aHPbXN)
45159
+ * @param hudColorIndex a hud color index, see the full list here: [link](https://docs.fivem.net/docs/game-references/hud-colors/)
45029
45160
  */
45030
45161
  declare function SetMpGamerTagHealthBarColor(gamerTagId: number, hudColorIndex: number): void;
45031
45162
 
@@ -46209,26 +46340,43 @@ declare function SetPedCombatRange(ped: number, p1: number): void;
46209
46340
  /**
46210
46341
  * This native is used to set component variation on a ped. Components, drawables and textures IDs are related to the ped model.
46211
46342
  * ### MP Freemode list of components
46212
- * **0**: Face\
46213
- * **1**: Mask\
46214
- * **2**: Hair\
46215
- * **3**: Torso\
46216
- * **4**: Leg\
46217
- * **5**: Parachute / bag\
46218
- * **6**: Shoes\
46219
- * **7**: Accessory\
46220
- * **8**: Undershirt\
46221
- * **9**: Kevlar\
46222
- * **10**: Badge\
46343
+ * **0**: Face
46344
+ * **1**: Mask
46345
+ * **2**: Hair
46346
+ * **3**: Torso
46347
+ * **4**: Leg
46348
+ * **5**: Parachute / bag
46349
+ * **6**: Shoes
46350
+ * **7**: Accessory
46351
+ * **8**: Undershirt
46352
+ * **9**: Kevlar
46353
+ * **10**: Badge
46223
46354
  * **11**: Torso 2
46224
- * ### Related and useful natives
46225
- * [GET_NUMBER_OF_PED_DRAWABLE_VARIATIONS](#\_0x27561561732A7842)\
46226
- * [GET_NUMBER_OF_PED_TEXTURE_VARIATIONS](#\_0x8F7156A3142A6BAD)
46227
- * [List of component/props ID](gtaxscripting.blogspot.com/2016/04/gta-v-peds-component-and-props.html) of player_two with examples
46355
+ * List of Component IDs
46356
+ * ```cpp
46357
+ * // Components
46358
+ * enum ePedVarComp
46359
+ * {
46360
+ * PV_COMP_INVALID = 0xFFFFFFFF,
46361
+ * PV_COMP_HEAD = 0, // "HEAD"
46362
+ * PV_COMP_BERD = 1, // "BEARD"
46363
+ * PV_COMP_HAIR = 2, // "HAIR"
46364
+ * PV_COMP_UPPR = 3, // "UPPER"
46365
+ * PV_COMP_LOWR = 4, // "LOWER"
46366
+ * PV_COMP_HAND = 5, // "HAND"
46367
+ * PV_COMP_FEET = 6, // "FEET"
46368
+ * PV_COMP_TEEF = 7, // "TEETH"
46369
+ * PV_COMP_ACCS = 8, // "ACCESSORIES"
46370
+ * PV_COMP_TASK = 9, // "TASK"
46371
+ * PV_COMP_DECL = 10, // "DECL"
46372
+ * PV_COMP_JBIB = 11, // "JBIB"
46373
+ * PV_COMP_MAX = 12,
46374
+ * };
46375
+ * ```
46228
46376
  * @param ped The ped handle.
46229
46377
  * @param componentId The component that you want to set.
46230
- * @param drawableId The drawable id that is going to be set.
46231
- * @param textureId The texture id of the drawable.
46378
+ * @param drawableId The drawable id that is going to be set. Refer to [GET_NUMBER_OF_PED_DRAWABLE_VARIATIONS](#\_0x27561561732A7842).
46379
+ * @param textureId The texture id of the drawable. Refer to [GET_NUMBER_OF_PED_TEXTURE_VARIATIONS](#\_0x8F7156A3142A6BAD).
46232
46380
  * @param paletteId 0 to 3.
46233
46381
  */
46234
46382
  declare function SetPedComponentVariation(ped: number, componentId: number, drawableId: number, textureId: number, paletteId: number): void;
@@ -47170,11 +47318,9 @@ declare function SetPedHelmet(ped: number, canWearHelmet: boolean): void;
47170
47318
  declare function SetPedHelmetFlag(ped: number, helmetFlag: number): void;
47171
47319
 
47172
47320
  /**
47173
- * List of component/props ID
47174
- * gtaxscripting.blogspot.com/2016/04/gta-v-peds-component-and-props.html
47175
- * ```
47176
- * ```
47177
47321
  * NativeDB Added Parameter 3: BOOL p2
47322
+ * @param ped The ped handle.
47323
+ * @param propIndex The prop index to set the helmet to. Refer to [SET_PED_PROP_INDEX](#\_0x93376B65A266EB5F).
47178
47324
  */
47179
47325
  declare function SetPedHelmetPropIndex(ped: number, propIndex: number): void;
47180
47326
 
@@ -47513,20 +47659,29 @@ declare function SetPedPreferredCoverSet(ped: number, itemSet: number): void;
47513
47659
  declare function N_0x8421eb4da7e391b9(ped: number, itemSet: number): void;
47514
47660
 
47515
47661
  /**
47516
- * List of component/props ID
47517
- * gtaxscripting.blogspot.com/2016/04/gta-v-peds-component-and-props.html
47662
+ * SET_PED_PRELOAD_PROP_DATA
47663
+ * @param ped The ped handle.
47664
+ * @param componentId The component that you want to set. Refer to [SET_PED_COMPONENT_VARIATION](#\_0x262B14F48D29DE80).
47665
+ * @param drawableId The drawable id that is going to be set. Refer to [GET_NUMBER_OF_PED_PROP_DRAWABLE_VARIATIONS](#\_0x5FAF9754E789FB47).
47666
+ * @param textureId The texture id of the drawable. Refer to [GET_NUMBER_OF_PED_PROP_TEXTURE_VARIATIONS](#\_0xA6E7F1CEB523E171).
47518
47667
  */
47519
- declare function SetPedPreloadPropData(ped: number, componentId: number, drawableId: number, TextureId: number): boolean;
47668
+ declare function SetPedPreloadPropData(ped: number, componentId: number, drawableId: number, textureId: number): boolean;
47520
47669
  /**
47521
- * List of component/props ID
47522
- * gtaxscripting.blogspot.com/2016/04/gta-v-peds-component-and-props.html
47670
+ * SET_PED_PRELOAD_PROP_DATA
47671
+ * @param ped The ped handle.
47672
+ * @param componentId The component that you want to set. Refer to [SET_PED_COMPONENT_VARIATION](#\_0x262B14F48D29DE80).
47673
+ * @param drawableId The drawable id that is going to be set. Refer to [GET_NUMBER_OF_PED_PROP_DRAWABLE_VARIATIONS](#\_0x5FAF9754E789FB47).
47674
+ * @param textureId The texture id of the drawable. Refer to [GET_NUMBER_OF_PED_PROP_TEXTURE_VARIATIONS](#\_0xA6E7F1CEB523E171).
47523
47675
  */
47524
- declare function N_0x2b16a3bff1fbce49(ped: number, componentId: number, drawableId: number, TextureId: number): boolean;
47676
+ declare function N_0x2b16a3bff1fbce49(ped: number, componentId: number, drawableId: number, textureId: number): boolean;
47525
47677
  /**
47526
- * List of component/props ID
47527
- * gtaxscripting.blogspot.com/2016/04/gta-v-peds-component-and-props.html
47678
+ * SET_PED_PRELOAD_PROP_DATA
47679
+ * @param ped The ped handle.
47680
+ * @param componentId The component that you want to set. Refer to [SET_PED_COMPONENT_VARIATION](#\_0x262B14F48D29DE80).
47681
+ * @param drawableId The drawable id that is going to be set. Refer to [GET_NUMBER_OF_PED_PROP_DRAWABLE_VARIATIONS](#\_0x5FAF9754E789FB47).
47682
+ * @param textureId The texture id of the drawable. Refer to [GET_NUMBER_OF_PED_PROP_TEXTURE_VARIATIONS](#\_0xA6E7F1CEB523E171).
47528
47683
  */
47529
- declare function IsPedPropValid(ped: number, componentId: number, drawableId: number, TextureId: number): boolean;
47684
+ declare function IsPedPropValid(ped: number, componentId: number, drawableId: number, textureId: number): boolean;
47530
47685
 
47531
47686
  /**
47532
47687
  * from extreme3.c4
@@ -47552,19 +47707,36 @@ declare function SetPedPrimaryLookat(ped: number, lookAt: number): void;
47552
47707
  /**
47553
47708
  * This native is used to set prop variation on a ped. Components, drawables and textures IDs are related to the ped model.
47554
47709
  * ### MP Freemode list of props
47555
- * **0**: Hat\
47556
- * **1**: Glass\
47557
- * **2**: Ear\
47558
- * **6**: Watch\
47559
- * **7**: Bracelet
47560
- * ### Related and useful natives
47561
- * [GET_NUMBER_OF_PED_PROP_DRAWABLE_VARIATIONS](#\_0x5FAF9754E789FB47)\
47562
- * [GET_NUMBER_OF_PED_PROP_TEXTURE_VARIATIONS](#\_0xA6E7F1CEB523E171)
47563
- * [List of component/props ID](https://gtaxscripting.blogspot.com/2016/04/gta-v-peds-component-and-props.html) of player_two with examples
47710
+ * **0**: Hats
47711
+ * **1**: Glasses
47712
+ * **2**: Ears
47713
+ * **6**: Watches
47714
+ * **7**: Bracelets
47715
+ * List of Prop IDs
47716
+ * ```cpp
47717
+ * // Props
47718
+ * enum eAnchorPoints
47719
+ * {
47720
+ * ANCHOR_HEAD = 0, // "p_head"
47721
+ * ANCHOR_EYES = 1, // "p_eyes"
47722
+ * ANCHOR_EARS = 2, // "p_ears"
47723
+ * ANCHOR_MOUTH = 3, // "p_mouth"
47724
+ * ANCHOR_LEFT_HAND = 4, // "p_lhand"
47725
+ * ANCHOR_RIGHT_HAND = 5, // "p_rhand"
47726
+ * ANCHOR_LEFT_WRIST = 6, // "p_lwrist"
47727
+ * ANCHOR_RIGHT_WRIST = 7, // "p_rwrist"
47728
+ * ANCHOR_HIP = 8, // "p_lhip"
47729
+ * ANCHOR_LEFT_FOOT = 9, // "p_lfoot"
47730
+ * ANCHOR_RIGHT_FOOT = 10, // "p_rfoot"
47731
+ * ANCHOR_PH_L_HAND = 11, // "ph_lhand"
47732
+ * ANCHOR_PH_R_HAND = 12, // "ph_rhand"
47733
+ * NUM_ANCHORS = 13,
47734
+ * };
47735
+ * ```
47564
47736
  * @param ped The ped handle.
47565
- * @param componentId The component that you want to set.
47566
- * @param drawableId The drawable id that is going to be set.
47567
- * @param textureId The texture id of the drawable.
47737
+ * @param componentId The component that you want to set. Refer to [SET_PED_COMPONENT_VARIATION](#\_0x262B14F48D29DE80).
47738
+ * @param drawableId The drawable id that is going to be set. Refer to [GET_NUMBER_OF_PED_PROP_DRAWABLE_VARIATIONS](#\_0x5FAF9754E789FB47).
47739
+ * @param textureId The texture id of the drawable. Refer to [GET_NUMBER_OF_PED_PROP_TEXTURE_VARIATIONS](#\_0xA6E7F1CEB523E171).
47568
47740
  * @param attach Attached or not.
47569
47741
  */
47570
47742
  declare function SetPedPropIndex(ped: number, componentId: number, drawableId: number, textureId: number, attach: boolean): void;
@@ -47576,19 +47748,18 @@ declare function SetPedRagdollForceFall(ped: number): void;
47576
47748
 
47577
47749
  /**
47578
47750
  * Causes Ped to ragdoll on collision with any object (e.g Running into trashcan). If applied to player you will sometimes trip on the sidewalk.
47751
+ * Needs to be recalled after each ragdoll from a Collision.
47579
47752
  */
47580
47753
  declare function SetPedRagdollOnCollision(ped: number, toggle: boolean): void;
47581
47754
 
47582
47755
  /**
47583
47756
  * p1 is always 0 in R* scripts; and a quick disassembly seems to indicate that p1 is unused.
47584
- * List of component/props ID:
47585
- * gtaxscripting.blogspot.com/2016/04/gta-v-peds-component-and-props.html
47586
47757
  */
47587
47758
  declare function SetPedRandomComponentVariation(ped: number, p1: number): void;
47588
47759
 
47589
47760
  /**
47590
- * List of component/props ID
47591
- * gtaxscripting.blogspot.com/2016/04/gta-v-peds-component-and-props.html
47761
+ * SET_PED_RANDOM_PROPS
47762
+ * @param ped The ped handle.
47592
47763
  */
47593
47764
  declare function SetPedRandomProps(ped: number): void;
47594
47765
 
@@ -48752,7 +48923,7 @@ declare function N_0x774bd811f656a122(radioStation: string, toggle: boolean): vo
48752
48923
  declare function SetRadioToStationIndex(radioStation: number): void;
48753
48924
 
48754
48925
  /**
48755
- * For a full list, see here: pastebin.com/Kj9t38KF
48926
+ * Find the radio station list [here](https://gist.github.com/4mmonium/b47d6512a2d992cbf4eea15d9038b581)
48756
48927
  */
48757
48928
  declare function SetRadioToStationName(stationName: string): void;
48758
48929
 
@@ -49544,7 +49715,9 @@ declare function SetSubmarineCrushDepths(vehicle: number, toggle: boolean, depth
49544
49715
  declare function JitterVehicle(vehicle: number, toggle: boolean, depth1: number, depth2: number, depth3: number): void;
49545
49716
 
49546
49717
  /**
49547
- * SET_SUPER_JUMP_THIS_FRAME
49718
+ * Allows the player to perform super jumps. This function must be called every frame for it to work.
49719
+ * It basically OR's a flag for a single frame, allowing the ped to perform a super jump only when the flag is set.
49720
+ * @param player The player we are setting this for.
49548
49721
  */
49549
49722
  declare function SetSuperJumpThisFrame(player: number): void;
49550
49723
 
@@ -49963,7 +50136,7 @@ declare function SetTrailerLegsRaised(vehicle: number): void;
49963
50136
  declare function N_0x95cf53b3d687f9fa(vehicle: number): void;
49964
50137
 
49965
50138
  /**
49966
- * SET_TRAIN_CRUISE_SPEED
50139
+ * Used to control train speed, can be used to start and stop its movement as well.
49967
50140
  */
49968
50141
  declare function SetTrainCruiseSpeed(train: number, speed: number): void;
49969
50142
 
@@ -50293,7 +50466,7 @@ declare function SetVehHasRadioOverride(vehicle: number): void;
50293
50466
  declare function N_0x3e45765f3fbb582f(vehicle: number): void;
50294
50467
 
50295
50468
  /**
50296
- * For a full list, see here: pastebin.com/Kj9t38KF
50469
+ * Find the radio station list [here](https://gist.github.com/4mmonium/b47d6512a2d992cbf4eea15d9038b581)
50297
50470
  */
50298
50471
  declare function SetVehRadioStation(vehicle: number, radioStation: string): void;
50299
50472
 
@@ -54696,8 +54869,9 @@ declare function StopAnimPlayback(ped: number, p1: number, p2: boolean): void;
54696
54869
 
54697
54870
  /**
54698
54871
  * [Animations list](https://alexguirre.github.io/animations-list/)
54872
+ * @param animExitSpeed Greater than `0.0`, higher is faster. Setting to `0.0` or using an integer, will cause animation lockout - requiring the animation to be played again or the player be killed.
54699
54873
  */
54700
- declare function StopAnimTask(ped: number, animDictionary: string, animationName: string, p3: number): void;
54874
+ declare function StopAnimTask(ped: number, animDictionary: string, animationName: string, animExitSpeed: number): void;
54701
54875
 
54702
54876
  /**
54703
54877
  * STOP_ANY_PED_MODEL_BEING_SUPPRESSED
@@ -56549,7 +56723,7 @@ declare function TaskWarpPedIntoVehicle(ped: number, vehicle: number, seatIndex:
56549
56723
  declare function TaskWrithe(ped: number, target: number, time: number, p3: number): void;
56550
56724
 
56551
56725
  /**
56552
- * For a full list, see here: pastebin.com/yLNWicUi
56726
+ * For a full list, see [here](https://gist.github.com/4mmonium/f76f3ecef649ed275b260b433ea84494).
56553
56727
  */
56554
56728
  declare function TerminateAllScriptsWithThisName(scriptName: string): void;
56555
56729
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@citizenfx/client",
3
- "version": "2.0.6550-1",
3
+ "version": "2.0.6552-1",
4
4
  "description": "Typings for the CitizenFX client JS API.",
5
5
  "main": "index.js",
6
6
  "scripts": {