@citizenfx/client 2.0.5834-1 → 2.0.5837-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/natives_universal.d.ts +27 -23
- package/package.json +1 -1
package/natives_universal.d.ts
CHANGED
|
@@ -144,7 +144,8 @@ declare function N_0xce5d0e5e315db238(x: number, y: number, z: number, width: nu
|
|
|
144
144
|
declare function AddBlipForCoord(x: number, y: number, z: number): number;
|
|
145
145
|
|
|
146
146
|
/**
|
|
147
|
-
* Create a blip that
|
|
147
|
+
* Create a blip that by default is red (enemy), you can use [SET_BLIP_AS_FRIENDLY](#\_0xC6F43D0E) to make it blue (friend).\
|
|
148
|
+
* Can be used for objects, vehicles and peds.
|
|
148
149
|
* Example of enemy:
|
|
149
150
|
* 
|
|
150
151
|
* Example of friend:
|
|
@@ -3143,18 +3144,20 @@ declare function CreateAmbientPickup(pickupHash: string | number, posX: number,
|
|
|
3143
3144
|
declare function CreateAudioSubmix(name: string): number;
|
|
3144
3145
|
|
|
3145
3146
|
/**
|
|
3146
|
-
*
|
|
3147
|
-
*
|
|
3148
|
-
*
|
|
3149
|
-
*
|
|
3150
|
-
*
|
|
3151
|
-
*
|
|
3152
|
-
*
|
|
3153
|
-
*
|
|
3154
|
-
*
|
|
3155
|
-
*
|
|
3156
|
-
*
|
|
3157
|
-
* @
|
|
3147
|
+
* Creates a camera with the specified cam name, You can use `SET_CAM_` natives to manipulate the camera.\
|
|
3148
|
+
* Make sure to call [RENDER_SCRIPT_CAMS](#\_0x07E5B515DB0636FC) once the camera is created, or this won't have any visible effect.
|
|
3149
|
+
* ### Camera names:
|
|
3150
|
+
* * DEFAULT_SCRIPTED_CAMERA
|
|
3151
|
+
* * DEFAULT_ANIMATED_CAMERA
|
|
3152
|
+
* * DEFAULT_SPLINE_CAMERA
|
|
3153
|
+
* * DEFAULT_SCRIPTED_FLY_CAMERA
|
|
3154
|
+
* * TIMED_SPLINE_CAMERA
|
|
3155
|
+
* * CUSTOM_TIMED_SPLINE_CAMERA
|
|
3156
|
+
* * ROUNDED_SPLINE_CAMERA
|
|
3157
|
+
* * SMOOTHED_SPLINE_CAMERA
|
|
3158
|
+
* @param camName A string representing the camera type, the game will convert the string into a joaat hash upon native execution.
|
|
3159
|
+
* @param active Set to true if you wish to make this new camera the active camera.
|
|
3160
|
+
* @return A camera handle referencing the camera that was created.
|
|
3158
3161
|
*/
|
|
3159
3162
|
declare function CreateCam(camName: string, active: boolean): number;
|
|
3160
3163
|
|
|
@@ -3513,7 +3516,7 @@ declare function CreatePortablePickup_2(pickupHash: string | number, x: number,
|
|
|
3513
3516
|
* @param isNetwork Whether to create a network object for the object. If false, the object exists only locally.
|
|
3514
3517
|
* @param netMissionEntity Whether to register the object as pinned to the script host in the R\* network model.
|
|
3515
3518
|
* @param doorFlag False to create a door archetype (archetype flag bit 26 set) as a door. Required to be set to true to create door models in network mode.
|
|
3516
|
-
* @return A script handle for the object, or `0` if the object failed to be created.
|
|
3519
|
+
* @return A script handle (fwScriptGuid index) for the object, or `0` if the object failed to be created.
|
|
3517
3520
|
*/
|
|
3518
3521
|
declare function CreateObject(modelHash: string | number, x: number, y: number, z: number, isNetwork: boolean, netMissionEntity: boolean, doorFlag: boolean): number;
|
|
3519
3522
|
|
|
@@ -10502,24 +10505,24 @@ declare function GetPedEventData(ped: number, eventType: number, outData?: numbe
|
|
|
10502
10505
|
declare function GetPedExtractedDisplacement(ped: number, worldSpace: boolean): number[];
|
|
10503
10506
|
|
|
10504
10507
|
/**
|
|
10505
|
-
* A getter for [
|
|
10508
|
+
* A getter for [`_SET_PED_EYE_COLOR`](#\_0x50B56988B170AFDF).
|
|
10506
10509
|
* @param ped The target ped
|
|
10507
10510
|
* @return Returns ped's eye colour, or -1 if fails to get.
|
|
10508
10511
|
*/
|
|
10509
10512
|
declare function GetPedEyeColor(ped: number): number;
|
|
10510
|
-
|
|
10511
10513
|
/**
|
|
10512
10514
|
* A getter for [`_SET_PED_EYE_COLOR`](#\_0x50B56988B170AFDF).
|
|
10513
10515
|
* @param ped The target ped
|
|
10514
10516
|
* @return Returns ped's eye colour, or -1 if fails to get.
|
|
10515
10517
|
*/
|
|
10516
|
-
declare function
|
|
10518
|
+
declare function N_0x76bba2cee66d47e9(ped: number): number;
|
|
10519
|
+
|
|
10517
10520
|
/**
|
|
10518
|
-
* A getter for [
|
|
10521
|
+
* A getter for [\_SET_PED_EYE_COLOR](#\_0x50B56988B170AFDF). Returns -1 if fails to get.
|
|
10519
10522
|
* @param ped The target ped
|
|
10520
10523
|
* @return Returns ped's eye colour, or -1 if fails to get.
|
|
10521
10524
|
*/
|
|
10522
|
-
declare function
|
|
10525
|
+
declare function GetPedEyeColor(ped: number): number;
|
|
10523
10526
|
|
|
10524
10527
|
/**
|
|
10525
10528
|
* A getter for [\_SET_PED_FACE_FEATURE](#\_0x71A5C1DBA060049E). Returns 0.0 if fails to get.
|
|
@@ -22876,8 +22879,8 @@ declare function NetworkGetNumParticipantsHost(): number;
|
|
|
22876
22879
|
|
|
22877
22880
|
/**
|
|
22878
22881
|
* Get the network id of the given entity
|
|
22879
|
-
* An entity network id
|
|
22880
|
-
* These can and will be reused, the network id will not change.
|
|
22882
|
+
* An entity network id represents a given entity for other clients, it's a handle shared between clients, can be reconverted to a client entity handle.\
|
|
22883
|
+
* These (entity network IDs) can and will be reused, the network id will not change.
|
|
22881
22884
|
* If you need to refer to an entity across machines (clients, or the server), you should use its network id.
|
|
22882
22885
|
* Read more at [Network and local IDs](https://docs.fivem.net/docs/scripting-manual/networking/ids/)
|
|
22883
22886
|
* @param entity the handle of the entity from which the network id should be taken
|
|
@@ -28892,8 +28895,9 @@ declare function SetBitsInRange(rangeStart: number, rangeEnd: number, p3: number
|
|
|
28892
28895
|
declare function SetBlipAlpha(blip: number, alpha: number): void;
|
|
28893
28896
|
|
|
28894
28897
|
/**
|
|
28895
|
-
*
|
|
28896
|
-
*
|
|
28898
|
+
* Allows the user to set a blip as friendly or enemy based on the toggle.
|
|
28899
|
+
* @param blip The blip handle
|
|
28900
|
+
* @param toggle True for friendly, false for enemy
|
|
28897
28901
|
*/
|
|
28898
28902
|
declare function SetBlipAsFriendly(blip: number, toggle: boolean): void;
|
|
28899
28903
|
|