@citizenfx/client 2.0.14033-1 → 2.0.14157-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.
@@ -6001,13 +6001,17 @@ declare function DeleteStuntJump(p0: number): void;
6001
6001
  declare function DeleteVehicle(vehicle: number): void;
6002
6002
 
6003
6003
  /**
6004
- * _DELETE_WAYPOINT
6004
+ * Same as [`SET_WAYPOINT_OFF`](#\_0xA7E4E2D361C2627F), except it checks if the local player is the owner of the waypoint.
6005
6005
  */
6006
- declare function DeleteWaypoint(): void;
6006
+ declare function DeleteWaypointsFromThisPlayer(): void;
6007
6007
  /**
6008
- * _DELETE_WAYPOINT
6008
+ * Same as [`SET_WAYPOINT_OFF`](#\_0xA7E4E2D361C2627F), except it checks if the local player is the owner of the waypoint.
6009
6009
  */
6010
6010
  declare function N_0xd8e694757bcea8e9(): void;
6011
+ /**
6012
+ * Same as [`SET_WAYPOINT_OFF`](#\_0xA7E4E2D361C2627F), except it checks if the local player is the owner of the waypoint.
6013
+ */
6014
+ declare function DeleteWaypoint(): void;
6011
6015
 
6012
6016
  /**
6013
6017
  * Does nothing and always returns false.
@@ -7445,6 +7449,15 @@ declare function DrawGizmo(matrixPtr: number, id: string): boolean;
7445
7449
  */
7446
7450
  declare function DrawGlowSphere(posX: number, posY: number, posZ: number, radius: number, colorR: number, colorG: number, colorB: number, intensity: number, invert: boolean, marker: boolean): void;
7447
7451
 
7452
+ /**
7453
+ * Allows HUD to be drawn over screen fade every frame this function is called.
7454
+ */
7455
+ declare function DrawHudOverFadeThisFrame(): void;
7456
+ /**
7457
+ * Allows HUD to be drawn over screen fade every frame this function is called.
7458
+ */
7459
+ declare function N_0xbf4f34a85ca2970c(): void;
7460
+
7448
7461
  /**
7449
7462
  * Similar to [\_DRAW_SPRITE](#\_0xE7FFAE5EBF23D890), but seems to be some kind of "interactive" sprite, at least used by render targets.
7450
7463
  * These seem to be the only dicts ever requested by this native:
@@ -9330,7 +9343,7 @@ declare function EnsureEntityStateBag(entity: number): void;
9330
9343
  declare function EnterCursorMode(): void;
9331
9344
 
9332
9345
  /**
9333
- * EXECUTE_COMMAND
9346
+ * Depending on your use case you may need to use `add_acl resource.<your_resource_name> command.<command_name> allow` to use this native in your resource.
9334
9347
  */
9335
9348
  declare function ExecuteCommand(commandString: string): void;
9336
9349
 
@@ -9967,6 +9980,11 @@ declare function ForceVehicleEngineAudio(vehicle: number, gameObjectName: string
9967
9980
  */
9968
9981
  declare function ForceVehicleEngineSynth(vehicle: number, force: boolean): void;
9969
9982
 
9983
+ /**
9984
+ * An internal function for converting a stack trace object to a string.
9985
+ */
9986
+ declare function FormatStackTrace(traceData: any): string;
9987
+
9970
9988
  /**
9971
9989
  * FREE_MEMORY_FOR_HIGH_QUALITY_PHOTO
9972
9990
  */
@@ -11514,6 +11532,38 @@ declare function GetDriftTyresEnabled(vehicle: number): boolean;
11514
11532
  */
11515
11533
  declare function GetDuiHandle(duiObject: number): string;
11516
11534
 
11535
+ /**
11536
+ * ### Supported types
11537
+ * * \[1] : Peds (including animals) and players.
11538
+ * * \[2] : Vehicles.
11539
+ * * \[3] : Objects (props), doors, and projectiles.
11540
+ * ### Coordinates need to be send unpacked (x,y,z)
11541
+ * ```lua
11542
+ * -- Define the allowed model hashes
11543
+ * local allowedModelHashes = { GetHashKey("p_crate03x"), GetHashKey("p_crate22x") }
11544
+ * -- Get the player's current coordinates
11545
+ * local playerCoords = GetEntityCoords(PlayerPedId())
11546
+ * -- Retrieve all entities of type Object (type 3) within a radius of 10.0 units
11547
+ * -- that match the allowed model hashes
11548
+ * -- and sort output entities by distance
11549
+ * local entities = GetEntitiesInRadius(playerCoords.x, playerCoords.y, playerCoords.z, 10.0, 3, true, allowedModelHashes)
11550
+ * -- Iterate through the list of entities and print their ids
11551
+ * for i = 1, #entities do
11552
+ * local entity = entities[i]
11553
+ * print(entity)
11554
+ * end
11555
+ * ```
11556
+ * @param x The X coordinate.
11557
+ * @param y The Y coordinate.
11558
+ * @param z The Z coordinate.
11559
+ * @param radius Max distance from coordinate to entity
11560
+ * @param entityType Entity types see list below
11561
+ * @param sortByDistance Sort output entites by distance from nearest to farthest
11562
+ * @param models List of allowed models its also optional
11563
+ * @return An array containing entity handles for each entity.
11564
+ */
11565
+ declare function GetEntitiesInRadius(x: number, y: number, z: number, radius: number, entityType: number, sortByDistance: boolean, models: any): any;
11566
+
11517
11567
  /**
11518
11568
  * **Experimental**: This native may be altered or removed in future versions of CitizenFX without warning.
11519
11569
  * Returns the memory address of an entity.
@@ -13702,6 +13752,103 @@ declare function GetModelDimensions(modelHash: string | number): [number[], numb
13702
13752
  */
13703
13753
  declare function GetMount(ped: number): number;
13704
13754
 
13755
+ /**
13756
+ * Gets mouse event data from scaleforms with mouse support. Must be checked every frame.
13757
+ * Returns item index if using the COLOUR_SWITCHER\_02 scaleform.
13758
+ * Selection types, found in MOUSE_EVENTS.as:
13759
+ * MOUSE_DRAG_OUT = 0;
13760
+ * MOUSE_DRAG_OVER = 1;
13761
+ * MOUSE_DOWN = 2;
13762
+ * MOUSE_MOVE = 3;
13763
+ * MOUSE_UP = 4;
13764
+ * MOUSE_PRESS = 5;
13765
+ * MOUSE_RELEASE = 6;
13766
+ * MOUSE_RELEASE_OUTSIDE = 7;
13767
+ * MOUSE_ROLL_OUT = 8;
13768
+ * MOUSE_ROLL_OVER = 9;
13769
+ * MOUSE_WHEEL_UP = 10;
13770
+ * MOUSE_WHEEL_DOWN = 11;
13771
+ * Scaleforms that this works with:
13772
+ * * COLOUR_SWITCHER\_02
13773
+ * * MP_RESULTS_PANEL
13774
+ * * MP_NEXT_JOB_SELECTION
13775
+ * * SC_LEADERBOARD
13776
+ * Probably works with other scaleforms, needs more research.
13777
+ * In order to use this Native you MUST have controls 239, 240, 237, 238 enabled!
13778
+ * This native, due to its erroneous redundancy of the returned boolean value, works differently in C#: shifting the parameters (where `received` becomes `selectionType` and so on making the fourth parameter unused and always 0).
13779
+ * @param scaleformHandle Handle of the scaleform
13780
+ * @param received Returns a boolean indicating if the data was received successfully (in Lua).
13781
+ * @param selectionType The type of MouseEvent specified above.
13782
+ * @param context Context of the slot the mouse is hovering on.
13783
+ * @param slotIndex Index of the slot the mouse is hovering on.
13784
+ * @return * **retVal** Returns true if MOUSE_EVENT callback from Scaleforms has been called.
13785
+ */
13786
+ declare function GetMouseEvent(scaleformHandle: number): [boolean, any /* actually bool */, number, number, number];
13787
+ /**
13788
+ * Gets mouse event data from scaleforms with mouse support. Must be checked every frame.
13789
+ * Returns item index if using the COLOUR_SWITCHER\_02 scaleform.
13790
+ * Selection types, found in MOUSE_EVENTS.as:
13791
+ * MOUSE_DRAG_OUT = 0;
13792
+ * MOUSE_DRAG_OVER = 1;
13793
+ * MOUSE_DOWN = 2;
13794
+ * MOUSE_MOVE = 3;
13795
+ * MOUSE_UP = 4;
13796
+ * MOUSE_PRESS = 5;
13797
+ * MOUSE_RELEASE = 6;
13798
+ * MOUSE_RELEASE_OUTSIDE = 7;
13799
+ * MOUSE_ROLL_OUT = 8;
13800
+ * MOUSE_ROLL_OVER = 9;
13801
+ * MOUSE_WHEEL_UP = 10;
13802
+ * MOUSE_WHEEL_DOWN = 11;
13803
+ * Scaleforms that this works with:
13804
+ * * COLOUR_SWITCHER\_02
13805
+ * * MP_RESULTS_PANEL
13806
+ * * MP_NEXT_JOB_SELECTION
13807
+ * * SC_LEADERBOARD
13808
+ * Probably works with other scaleforms, needs more research.
13809
+ * In order to use this Native you MUST have controls 239, 240, 237, 238 enabled!
13810
+ * This native, due to its erroneous redundancy of the returned boolean value, works differently in C#: shifting the parameters (where `received` becomes `selectionType` and so on making the fourth parameter unused and always 0).
13811
+ * @param scaleformHandle Handle of the scaleform
13812
+ * @param received Returns a boolean indicating if the data was received successfully (in Lua).
13813
+ * @param selectionType The type of MouseEvent specified above.
13814
+ * @param context Context of the slot the mouse is hovering on.
13815
+ * @param slotIndex Index of the slot the mouse is hovering on.
13816
+ * @return * **retVal** Returns true if MOUSE_EVENT callback from Scaleforms has been called.
13817
+ */
13818
+ declare function N_0x632b2940c67f4ea9(scaleformHandle: number): [boolean, any /* actually bool */, number, number, number];
13819
+ /**
13820
+ * Gets mouse event data from scaleforms with mouse support. Must be checked every frame.
13821
+ * Returns item index if using the COLOUR_SWITCHER\_02 scaleform.
13822
+ * Selection types, found in MOUSE_EVENTS.as:
13823
+ * MOUSE_DRAG_OUT = 0;
13824
+ * MOUSE_DRAG_OVER = 1;
13825
+ * MOUSE_DOWN = 2;
13826
+ * MOUSE_MOVE = 3;
13827
+ * MOUSE_UP = 4;
13828
+ * MOUSE_PRESS = 5;
13829
+ * MOUSE_RELEASE = 6;
13830
+ * MOUSE_RELEASE_OUTSIDE = 7;
13831
+ * MOUSE_ROLL_OUT = 8;
13832
+ * MOUSE_ROLL_OVER = 9;
13833
+ * MOUSE_WHEEL_UP = 10;
13834
+ * MOUSE_WHEEL_DOWN = 11;
13835
+ * Scaleforms that this works with:
13836
+ * * COLOUR_SWITCHER\_02
13837
+ * * MP_RESULTS_PANEL
13838
+ * * MP_NEXT_JOB_SELECTION
13839
+ * * SC_LEADERBOARD
13840
+ * Probably works with other scaleforms, needs more research.
13841
+ * In order to use this Native you MUST have controls 239, 240, 237, 238 enabled!
13842
+ * This native, due to its erroneous redundancy of the returned boolean value, works differently in C#: shifting the parameters (where `received` becomes `selectionType` and so on making the fourth parameter unused and always 0).
13843
+ * @param scaleformHandle Handle of the scaleform
13844
+ * @param received Returns a boolean indicating if the data was received successfully (in Lua).
13845
+ * @param selectionType The type of MouseEvent specified above.
13846
+ * @param context Context of the slot the mouse is hovering on.
13847
+ * @param slotIndex Index of the slot the mouse is hovering on.
13848
+ * @return * **retVal** Returns true if MOUSE_EVENT callback from Scaleforms has been called.
13849
+ */
13850
+ declare function GetScaleformMovieCursorSelection(scaleformHandle: number): [boolean, any /* actually bool */, number, number, number];
13851
+
13705
13852
  /**
13706
13853
  * GET_MUSIC_PLAYTIME
13707
13854
  * @return Returns the play time in milliseconds of the current score track.
@@ -16989,71 +17136,6 @@ declare function GetSafePickupCoords(x: number, y: number, z: number, p3: number
16989
17136
  */
16990
17137
  declare function GetSafeZoneSize(): number;
16991
17138
 
16992
- /**
16993
- * Gets mouse selection data from scaleforms with mouse support. Must be checked every frame.
16994
- * Returns item index if using the COLOUR_SWITCHER\_02 scaleform.
16995
- * Selection types, found in MOUSE_EVENTS.as:
16996
- * MOUSE_DRAG_OUT = 0;
16997
- * MOUSE_DRAG_OVER = 1;
16998
- * MOUSE_DOWN = 2;
16999
- * MOUSE_MOVE = 3;
17000
- * MOUSE_UP = 4;
17001
- * MOUSE_PRESS = 5;
17002
- * MOUSE_RELEASE = 6;
17003
- * MOUSE_RELEASE_OUTSIDE = 7;
17004
- * MOUSE_ROLL_OUT = 8;
17005
- * MOUSE_ROLL_OVER = 9;
17006
- * MOUSE_WHEEL_UP = 10;
17007
- * MOUSE_WHEEL_DOWN = 11;
17008
- * Scaleforms that this works with:
17009
- * * COLOUR_SWITCHER\_02
17010
- * * MP_RESULTS_PANEL
17011
- * * MP_NEXT_JOB_SELECTION
17012
- * * SC_LEADERBOARD
17013
- * Probably works with other scaleforms, needs more research.
17014
- * In order to use this Native you MUST have controls 239, 240, 237, 238 enabled!
17015
- * This native, due to its erroneous redundancy of the returned boolean value, works differently in C#: shifting the parameters (where `received` becomes `selectionType` and so on making the fourth parameter unused and always 0).
17016
- * @param scaleformHandle Handle of the scaleform
17017
- * @param received Returns a boolean indicating if the data was received successfully (in Lua).
17018
- * @param selectionType The type of MouseEvent specified above.
17019
- * @param context Context of the slot the mouse is hovering on.
17020
- * @param slotIndex Index of the slot the mouse is hovering on.
17021
- * @return * **retVal** Returns true if MOUSE_EVENT callback from Scaleforms has been called.
17022
- */
17023
- declare function GetScaleformMovieCursorSelection(scaleformHandle: number): [boolean, any /* actually bool */, number, number, number];
17024
- /**
17025
- * Gets mouse selection data from scaleforms with mouse support. Must be checked every frame.
17026
- * Returns item index if using the COLOUR_SWITCHER\_02 scaleform.
17027
- * Selection types, found in MOUSE_EVENTS.as:
17028
- * MOUSE_DRAG_OUT = 0;
17029
- * MOUSE_DRAG_OVER = 1;
17030
- * MOUSE_DOWN = 2;
17031
- * MOUSE_MOVE = 3;
17032
- * MOUSE_UP = 4;
17033
- * MOUSE_PRESS = 5;
17034
- * MOUSE_RELEASE = 6;
17035
- * MOUSE_RELEASE_OUTSIDE = 7;
17036
- * MOUSE_ROLL_OUT = 8;
17037
- * MOUSE_ROLL_OVER = 9;
17038
- * MOUSE_WHEEL_UP = 10;
17039
- * MOUSE_WHEEL_DOWN = 11;
17040
- * Scaleforms that this works with:
17041
- * * COLOUR_SWITCHER\_02
17042
- * * MP_RESULTS_PANEL
17043
- * * MP_NEXT_JOB_SELECTION
17044
- * * SC_LEADERBOARD
17045
- * Probably works with other scaleforms, needs more research.
17046
- * In order to use this Native you MUST have controls 239, 240, 237, 238 enabled!
17047
- * This native, due to its erroneous redundancy of the returned boolean value, works differently in C#: shifting the parameters (where `received` becomes `selectionType` and so on making the fourth parameter unused and always 0).
17048
- * @param scaleformHandle Handle of the scaleform
17049
- * @param received Returns a boolean indicating if the data was received successfully (in Lua).
17050
- * @param selectionType The type of MouseEvent specified above.
17051
- * @param context Context of the slot the mouse is hovering on.
17052
- * @param slotIndex Index of the slot the mouse is hovering on.
17053
- * @return * **retVal** Returns true if MOUSE_EVENT callback from Scaleforms has been called.
17054
- */
17055
- declare function N_0x632b2940c67f4ea9(scaleformHandle: number): [boolean, any /* actually bool */, number, number, number];
17056
-
17057
17139
  /**
17058
17140
  * GET_SCALEFORM_MOVIE_METHOD_RETURN_VALUE_BOOL
17059
17141
  * @param methodReturn Operation handle returned by [`END_SCALEFORM_MOVIE_METHOD_RETURN_VALUE`](#\_0xC50AA39A577AF886)
@@ -30816,11 +30898,6 @@ declare function N_0xbf22e0f32968e967(player: number, p1: boolean): void;
30816
30898
  */
30817
30899
  declare function N_0xbf371cd2b64212fd(p0: number): void;
30818
30900
 
30819
- /**
30820
- * 0xBF4F34A85CA2970C
30821
- */
30822
- declare function N_0xbf4f34a85ca2970c(): void;
30823
-
30824
30901
  /**
30825
30902
  * 0xBF72910D0F26F025
30826
30903
  */
@@ -44435,15 +44512,19 @@ declare function SetBlipBright(blip: number, toggle: boolean): void;
44435
44512
  * 7 = "Other Players" category, also shows distance in legend
44436
44513
  * 10 = "Property" category
44437
44514
  * 11 = "Owned Property" category
44515
+ * 12 - 133 = Custom named categories
44516
+ * 134 - 254 = Custom unnamed categories
44438
44517
  * ```
44439
- * Any other value behaves like `index = 1`, `index` wraps around after 255
44440
- * Blips with categories `7`, `10` or `11` will all show under the specific categories listing in the map legend, regardless of sprite or name.
44518
+ * `index` wraps around after 255.
44519
+ * Blips with categories `7`, `10`, `11` or `12 - 254` (custom categories) will all show under the specific categories listing in the map legend, regardless of sprite or name.
44441
44520
  * **Legend entries**
44442
44521
  * | index | Legend entry | Label |
44443
44522
  * | --- | --- | --- |
44444
44523
  * | 7 | Other Players | `BLIP_OTHPLYR` |
44445
44524
  * | 10 | Property | `BLIP_PROPCAT` |
44446
44525
  * | 11 | Owned Property | `BLIP_APARTCAT` |
44526
+ * | 12 - 133 | Custom categories (Named) | `BLIP_CAT_` + `index` |
44527
+ * | 134 - 254 | Custom categories (Unnamed) | `-` |
44447
44528
  * @param blip The blip to change the category index of
44448
44529
  * @param index The category index to change to
44449
44530
  */
@@ -48996,19 +49077,19 @@ declare function SetMpGamerHealthBarDisplay(gamerTagId: number, toggle: boolean)
48996
49077
 
48997
49078
  /**
48998
49079
  * Should be enabled as component (2). Has 0 alpha by default.
48999
- * @param gamerTagId a gamerTagId obtained using for example: [CREATE_FAKE_MP_GAMER_TAG](https://runtime.fivem.net/doc/natives/?\_0xBFEFE3321A3F5015)
49080
+ * @param gamerTagId a gamerTagId obtained using for example: [CREATE_FAKE_MP_GAMER_TAG](https://docs.fivem.net/natives/?\_0xBFEFE3321A3F5015)
49000
49081
  * @param hudColorIndex a hud color index, see the full list here: [link](https://docs.fivem.net/docs/game-references/hud-colors/)
49001
49082
  */
49002
49083
  declare function SetMpGamerTagHealthBarColour(gamerTagId: number, hudColorIndex: number): void;
49003
49084
  /**
49004
49085
  * Should be enabled as component (2). Has 0 alpha by default.
49005
- * @param gamerTagId a gamerTagId obtained using for example: [CREATE_FAKE_MP_GAMER_TAG](https://runtime.fivem.net/doc/natives/?\_0xBFEFE3321A3F5015)
49086
+ * @param gamerTagId a gamerTagId obtained using for example: [CREATE_FAKE_MP_GAMER_TAG](https://docs.fivem.net/natives/?\_0xBFEFE3321A3F5015)
49006
49087
  * @param hudColorIndex a hud color index, see the full list here: [link](https://docs.fivem.net/docs/game-references/hud-colors/)
49007
49088
  */
49008
49089
  declare function N_0x3158c77a7e888ab4(gamerTagId: number, hudColorIndex: number): void;
49009
49090
  /**
49010
49091
  * Should be enabled as component (2). Has 0 alpha by default.
49011
- * @param gamerTagId a gamerTagId obtained using for example: [CREATE_FAKE_MP_GAMER_TAG](https://runtime.fivem.net/doc/natives/?\_0xBFEFE3321A3F5015)
49092
+ * @param gamerTagId a gamerTagId obtained using for example: [CREATE_FAKE_MP_GAMER_TAG](https://docs.fivem.net/natives/?\_0xBFEFE3321A3F5015)
49012
49093
  * @param hudColorIndex a hud color index, see the full list here: [link](https://docs.fivem.net/docs/game-references/hud-colors/)
49013
49094
  */
49014
49095
  declare function SetMpGamerTagHealthBarColor(gamerTagId: number, hudColorIndex: number): void;
@@ -57405,13 +57486,17 @@ declare function SetWantedLevelMultiplier(multiplier: number): void;
57405
57486
  declare function SetWarningMessage(entryLine1: string, instructionalKey: number, entryLine2: string, p3: boolean, p4: number, background: string, p6: string, showBg: boolean, errorCode: number): void;
57406
57487
 
57407
57488
  /**
57408
- * Param names copied from the corresponding scaleform function "SET_LIST_ROW"
57489
+ * SET_WARNING_MESSAGE_OPTION_ITEMS
57409
57490
  */
57410
- declare function SetWarningMessageListRow(index: number, name: string, cash: number, rp: number, lvl: number, colour: number): boolean;
57491
+ declare function SetWarningMessageOptionItems(index: number, name: string, cash: number, rp: number, lvl: number, colour: number): boolean;
57411
57492
  /**
57412
- * Param names copied from the corresponding scaleform function "SET_LIST_ROW"
57493
+ * SET_WARNING_MESSAGE_OPTION_ITEMS
57413
57494
  */
57414
57495
  declare function N_0x0c5a80a9e096d529(index: number, name: string, cash: number, rp: number, lvl: number, colour: number): boolean;
57496
+ /**
57497
+ * SET_WARNING_MESSAGE_OPTION_ITEMS
57498
+ */
57499
+ declare function SetWarningMessageListRow(index: number, name: string, cash: number, rp: number, lvl: number, colour: number): boolean;
57415
57500
 
57416
57501
  /**
57417
57502
  * instructionalKey enum list:
@@ -59365,11 +59450,21 @@ declare function Cast_3dRayPointToPoint(x1: number, y1: number, z1: number, x2:
59365
59450
  * IntersectPeds = 4,
59366
59451
  * IntersectRagdolls = 8,
59367
59452
  * IntersectObjects = 16,
59368
- * IntersectWater = 32,
59453
+ * IntersectPickup = 32,
59369
59454
  * IntersectGlass = 64,
59370
59455
  * IntersectRiver = 128,
59371
59456
  * IntersectFoliage = 256,
59372
- * IntersectEverything = -1
59457
+ * IntersectEverything = 511
59458
+ * }
59459
+ * ```
59460
+ * ```cpp
59461
+ * enum eTraceOptionFlags
59462
+ * {
59463
+ * None = 0,
59464
+ * OptionIgnoreGlass = 1,
59465
+ * OptionIgnoreSeeThrough = 2,
59466
+ * OptionIgnoreNoCollision = 4,
59467
+ * OptionDefault = 7
59373
59468
  * }
59374
59469
  * ```
59375
59470
  * NOTE: Raycasts that intersect with mission_entites (flag = 2) has limited range and will not register for far away entites. The range seems to be about 30 metres.
@@ -59382,10 +59477,10 @@ declare function Cast_3dRayPointToPoint(x1: number, y1: number, z1: number, x2:
59382
59477
  * @param z2 Ending Z coordinate.
59383
59478
  * @param traceFlags Refer to `eTraceFlags`, this defines what the shape test will intersect with
59384
59479
  * @param entity An entity to ignore, or 0.
59385
- * @param options A bit mask with bits 1, 2, 4, or 7 relating to collider types. 4 and 7 are usually used.
59480
+ * @param optionFlags Refer to `eTraceOptionFlags`, this defines additional options for the shape test
59386
59481
  * @return A shape test handle.
59387
59482
  */
59388
- declare function StartShapeTestLosProbe(x1: number, y1: number, z1: number, x2: number, y2: number, z2: number, traceFlags: number, entity: number, options: number): number;
59483
+ declare function StartShapeTestLosProbe(x1: number, y1: number, z1: number, x2: number, y2: number, z2: number, traceFlags: number, entity: number, optionFlags: number): number;
59389
59484
  /**
59390
59485
  * Asynchronously starts a line-of-sight (raycast) world probe shape test.
59391
59486
  * ```cpp
@@ -59397,11 +59492,21 @@ declare function StartShapeTestLosProbe(x1: number, y1: number, z1: number, x2:
59397
59492
  * IntersectPeds = 4,
59398
59493
  * IntersectRagdolls = 8,
59399
59494
  * IntersectObjects = 16,
59400
- * IntersectWater = 32,
59495
+ * IntersectPickup = 32,
59401
59496
  * IntersectGlass = 64,
59402
59497
  * IntersectRiver = 128,
59403
59498
  * IntersectFoliage = 256,
59404
- * IntersectEverything = -1
59499
+ * IntersectEverything = 511
59500
+ * }
59501
+ * ```
59502
+ * ```cpp
59503
+ * enum eTraceOptionFlags
59504
+ * {
59505
+ * None = 0,
59506
+ * OptionIgnoreGlass = 1,
59507
+ * OptionIgnoreSeeThrough = 2,
59508
+ * OptionIgnoreNoCollision = 4,
59509
+ * OptionDefault = 7
59405
59510
  * }
59406
59511
  * ```
59407
59512
  * NOTE: Raycasts that intersect with mission_entites (flag = 2) has limited range and will not register for far away entites. The range seems to be about 30 metres.
@@ -59414,10 +59519,10 @@ declare function StartShapeTestLosProbe(x1: number, y1: number, z1: number, x2:
59414
59519
  * @param z2 Ending Z coordinate.
59415
59520
  * @param traceFlags Refer to `eTraceFlags`, this defines what the shape test will intersect with
59416
59521
  * @param entity An entity to ignore, or 0.
59417
- * @param options A bit mask with bits 1, 2, 4, or 7 relating to collider types. 4 and 7 are usually used.
59522
+ * @param optionFlags Refer to `eTraceOptionFlags`, this defines additional options for the shape test
59418
59523
  * @return A shape test handle.
59419
59524
  */
59420
- declare function N_0x7ee9f5d83dd4f90e(x1: number, y1: number, z1: number, x2: number, y2: number, z2: number, traceFlags: number, entity: number, options: number): number;
59525
+ declare function N_0x7ee9f5d83dd4f90e(x1: number, y1: number, z1: number, x2: number, y2: number, z2: number, traceFlags: number, entity: number, optionFlags: number): number;
59421
59526
 
59422
59527
  /**
59423
59528
  * Since it is only used in the PC version, likely some mouse-friendly shape test. Uses **in** vector arguments.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@citizenfx/client",
3
- "version": "2.0.14033-1",
3
+ "version": "2.0.14157-1",
4
4
  "description": "Typings for the CitizenFX client JS API.",
5
5
  "main": "index.js",
6
6
  "scripts": {