@citizenfx/server 2.0.8292-1 → 2.0.8306-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_server.d.ts +87 -0
- package/package.json +1 -1
package/natives_server.d.ts
CHANGED
|
@@ -14,6 +14,22 @@
|
|
|
14
14
|
* @return A handle to the blip.
|
|
15
15
|
*/
|
|
16
16
|
declare function AddBlipForArea(x: number, y: number, z: number, width: number, height: number): number;
|
|
17
|
+
/**
|
|
18
|
+
* Adds a rectangular blip for the specified coordinates/area.
|
|
19
|
+
* It is recommended to use [SET_BLIP_ROTATION](#\_0xF87683CDF73C3F6E) and [SET_BLIP_COLOUR](#\_0x03D7FB09E75D6B7E) to make the blip not rotate along with the camera.
|
|
20
|
+
* By default, the blip will show as a *regular* blip with the specified color/sprite if it is outside of the minimap view.
|
|
21
|
+
* Example image:
|
|
22
|
+
* 
|
|
23
|
+
* 
|
|
24
|
+
* (Native name is *likely* to actually be ADD_BLIP_FOR_AREA, but due to the usual reasons this can't be confirmed)
|
|
25
|
+
* @param x The X coordinate of the center of the blip.
|
|
26
|
+
* @param y The Y coordinate of the center of the blip.
|
|
27
|
+
* @param z The Z coordinate of the center of the blip.
|
|
28
|
+
* @param width The width of the blip.
|
|
29
|
+
* @param height The height of the blip.
|
|
30
|
+
* @return A handle to the blip.
|
|
31
|
+
*/
|
|
32
|
+
declare function N_0xce5d0e5e315db238(x: number, y: number, z: number, width: number, height: number): number;
|
|
17
33
|
|
|
18
34
|
/**
|
|
19
35
|
* Creates a blip for the specified coordinates. You can use `SET_BLIP_` natives to change the blip.
|
|
@@ -73,6 +89,56 @@ declare function AddBlipForRadius(posX: number, posY: number, posZ: number, radi
|
|
|
73
89
|
* PED::_0x5F5D1665E352A839(PLAYER::PLAYER_PED_ID(), MISC::GET_HASH_KEY("mpbeach_overlays"), MISC::GET_HASH_KEY("fm_hair_fuzz"))
|
|
74
90
|
*/
|
|
75
91
|
declare function AddPedDecorationFromHashes(ped: number, collection: string | number, overlay: string | number): void;
|
|
92
|
+
/**
|
|
93
|
+
* Applies an Item from a PedDecorationCollection to a ped. These include tattoos and shirt decals.
|
|
94
|
+
* collection - PedDecorationCollection filename hash
|
|
95
|
+
* overlay - Item name hash
|
|
96
|
+
* Example:
|
|
97
|
+
* Entry inside "mpbeach_overlays.xml" -
|
|
98
|
+
* <Item>
|
|
99
|
+
* <uvPos x="0.500000" y="0.500000" />
|
|
100
|
+
* <scale x="0.600000" y="0.500000" />
|
|
101
|
+
* <rotation value="0.000000" />
|
|
102
|
+
* <nameHash>FM_Hair_Fuzz</nameHash>
|
|
103
|
+
* <txdHash>mp_hair_fuzz</txdHash>
|
|
104
|
+
* <txtHash>mp_hair_fuzz</txtHash>
|
|
105
|
+
* <zone>ZONE_HEAD</zone>
|
|
106
|
+
* <type>TYPE_TATTOO</type>
|
|
107
|
+
* <faction>FM</faction>
|
|
108
|
+
* <garment>All</garment>
|
|
109
|
+
* <gender>GENDER_DONTCARE</gender>
|
|
110
|
+
* <award />
|
|
111
|
+
* <awardLevel />
|
|
112
|
+
* </Item>
|
|
113
|
+
* Code:
|
|
114
|
+
* PED::_0x5F5D1665E352A839(PLAYER::PLAYER_PED_ID(), MISC::GET_HASH_KEY("mpbeach_overlays"), MISC::GET_HASH_KEY("fm_hair_fuzz"))
|
|
115
|
+
*/
|
|
116
|
+
declare function ApplyPedOverlay(ped: number, collection: string | number, overlay: string | number): void;
|
|
117
|
+
/**
|
|
118
|
+
* Applies an Item from a PedDecorationCollection to a ped. These include tattoos and shirt decals.
|
|
119
|
+
* collection - PedDecorationCollection filename hash
|
|
120
|
+
* overlay - Item name hash
|
|
121
|
+
* Example:
|
|
122
|
+
* Entry inside "mpbeach_overlays.xml" -
|
|
123
|
+
* <Item>
|
|
124
|
+
* <uvPos x="0.500000" y="0.500000" />
|
|
125
|
+
* <scale x="0.600000" y="0.500000" />
|
|
126
|
+
* <rotation value="0.000000" />
|
|
127
|
+
* <nameHash>FM_Hair_Fuzz</nameHash>
|
|
128
|
+
* <txdHash>mp_hair_fuzz</txdHash>
|
|
129
|
+
* <txtHash>mp_hair_fuzz</txtHash>
|
|
130
|
+
* <zone>ZONE_HEAD</zone>
|
|
131
|
+
* <type>TYPE_TATTOO</type>
|
|
132
|
+
* <faction>FM</faction>
|
|
133
|
+
* <garment>All</garment>
|
|
134
|
+
* <gender>GENDER_DONTCARE</gender>
|
|
135
|
+
* <award />
|
|
136
|
+
* <awardLevel />
|
|
137
|
+
* </Item>
|
|
138
|
+
* Code:
|
|
139
|
+
* PED::_0x5F5D1665E352A839(PLAYER::PLAYER_PED_ID(), MISC::GET_HASH_KEY("mpbeach_overlays"), MISC::GET_HASH_KEY("fm_hair_fuzz"))
|
|
140
|
+
*/
|
|
141
|
+
declare function SetPedDecoration(ped: number, collection: string | number, overlay: string | number): void;
|
|
76
142
|
|
|
77
143
|
/**
|
|
78
144
|
* Adds a handler for changes to a state bag.
|
|
@@ -2392,6 +2458,27 @@ declare function SetPedEyeColor(ped: number, index: number): void;
|
|
|
2392
2458
|
*/
|
|
2393
2459
|
declare function SetPedFaceFeature(ped: number, index: number, scale: number): void;
|
|
2394
2460
|
|
|
2461
|
+
/**
|
|
2462
|
+
* Sets the tint index for the hair on the specified ped.
|
|
2463
|
+
* ```
|
|
2464
|
+
* NativeDB Introduced: v323
|
|
2465
|
+
* ```
|
|
2466
|
+
* @param ped The Ped whose hair tint is to be set.
|
|
2467
|
+
* @param colorID The tint index for the primary hair color.
|
|
2468
|
+
* @param highlightColorID The tint index for the hair highlight color.
|
|
2469
|
+
*/
|
|
2470
|
+
declare function SetPedHairTint(ped: number, colorID: number, highlightColorID: number): void;
|
|
2471
|
+
/**
|
|
2472
|
+
* Sets the tint index for the hair on the specified ped.
|
|
2473
|
+
* ```
|
|
2474
|
+
* NativeDB Introduced: v323
|
|
2475
|
+
* ```
|
|
2476
|
+
* @param ped The Ped whose hair tint is to be set.
|
|
2477
|
+
* @param colorID The tint index for the primary hair color.
|
|
2478
|
+
* @param highlightColorID The tint index for the hair highlight color.
|
|
2479
|
+
*/
|
|
2480
|
+
declare function SetPedHairColor(ped: number, colorID: number, highlightColorID: number): void;
|
|
2481
|
+
|
|
2395
2482
|
/**
|
|
2396
2483
|
* For more info please refer to [this](https://gtaforums.com/topic/858970-all-gtao-face-ids-pedset-ped-head-blend-data-explained) topic.
|
|
2397
2484
|
* **Other information:**
|