@citizenfx/server 2.0.6550-1 → 2.0.6551-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_server.d.ts +68 -35
  2. package/package.json +1 -1
@@ -141,8 +141,9 @@ declare function CanPlayerStartCommerceSession(playerSrc: string): boolean;
141
141
  declare function CancelEvent(): void;
142
142
 
143
143
  /**
144
- * List of component/props ID
145
- * gtaxscripting.blogspot.com/2016/04/gta-v-peds-component-and-props.html
144
+ * CLEAR_PED_PROP
145
+ * @param ped The ped handle.
146
+ * @param propId The prop id you want to clear from the ped. Refer to [SET_PED_PROP_INDEX](#\_0x93376B65A266EB5F).
146
147
  */
147
148
  declare function ClearPedProp(ped: number, propId: number): void;
148
149
 
@@ -1787,26 +1788,43 @@ declare function SetPedCanRagdoll(ped: number, toggle: boolean): void;
1787
1788
  /**
1788
1789
  * This native is used to set component variation on a ped. Components, drawables and textures IDs are related to the ped model.
1789
1790
  * ### MP Freemode list of components
1790
- * **0**: Face\
1791
- * **1**: Mask\
1792
- * **2**: Hair\
1793
- * **3**: Torso\
1794
- * **4**: Leg\
1795
- * **5**: Parachute / bag\
1796
- * **6**: Shoes\
1797
- * **7**: Accessory\
1798
- * **8**: Undershirt\
1799
- * **9**: Kevlar\
1800
- * **10**: Badge\
1791
+ * **0**: Face
1792
+ * **1**: Mask
1793
+ * **2**: Hair
1794
+ * **3**: Torso
1795
+ * **4**: Leg
1796
+ * **5**: Parachute / bag
1797
+ * **6**: Shoes
1798
+ * **7**: Accessory
1799
+ * **8**: Undershirt
1800
+ * **9**: Kevlar
1801
+ * **10**: Badge
1801
1802
  * **11**: Torso 2
1802
- * ### Related and useful natives
1803
- * [GET_NUMBER_OF_PED_DRAWABLE_VARIATIONS](#\_0x27561561732A7842)\
1804
- * [GET_NUMBER_OF_PED_TEXTURE_VARIATIONS](#\_0x8F7156A3142A6BAD)
1805
- * [List of component/props ID](gtaxscripting.blogspot.com/2016/04/gta-v-peds-component-and-props.html) of player_two with examples
1803
+ * List of Component IDs
1804
+ * ```cpp
1805
+ * // Components
1806
+ * enum ePedVarComp
1807
+ * {
1808
+ * PV_COMP_INVALID = 0xFFFFFFFF,
1809
+ * PV_COMP_HEAD = 0, // "HEAD"
1810
+ * PV_COMP_BERD = 1, // "BEARD"
1811
+ * PV_COMP_HAIR = 2, // "HAIR"
1812
+ * PV_COMP_UPPR = 3, // "UPPER"
1813
+ * PV_COMP_LOWR = 4, // "LOWER"
1814
+ * PV_COMP_HAND = 5, // "HAND"
1815
+ * PV_COMP_FEET = 6, // "FEET"
1816
+ * PV_COMP_TEEF = 7, // "TEETH"
1817
+ * PV_COMP_ACCS = 8, // "ACCESSORIES"
1818
+ * PV_COMP_TASK = 9, // "TASK"
1819
+ * PV_COMP_DECL = 10, // "DECL"
1820
+ * PV_COMP_JBIB = 11, // "JBIB"
1821
+ * PV_COMP_MAX = 12,
1822
+ * };
1823
+ * ```
1806
1824
  * @param ped The ped handle.
1807
1825
  * @param componentId The component that you want to set.
1808
- * @param drawableId The drawable id that is going to be set.
1809
- * @param textureId The texture id of the drawable.
1826
+ * @param drawableId The drawable id that is going to be set. Refer to [GET_NUMBER_OF_PED_DRAWABLE_VARIATIONS](#\_0x27561561732A7842).
1827
+ * @param textureId The texture id of the drawable. Refer to [GET_NUMBER_OF_PED_TEXTURE_VARIATIONS](#\_0x8F7156A3142A6BAD).
1810
1828
  * @param paletteId 0 to 3.
1811
1829
  */
1812
1830
  declare function SetPedComponentVariation(ped: number, componentId: number, drawableId: number, textureId: number, paletteId: number): void;
@@ -2429,33 +2447,48 @@ declare function SetPedIntoVehicle(ped: number, vehicle: number, seatIndex: numb
2429
2447
  /**
2430
2448
  * This native is used to set prop variation on a ped. Components, drawables and textures IDs are related to the ped model.
2431
2449
  * ### MP Freemode list of props
2432
- * **0**: Hat\
2433
- * **1**: Glass\
2434
- * **2**: Ear\
2435
- * **6**: Watch\
2436
- * **7**: Bracelet
2437
- * ### Related and useful natives
2438
- * [GET_NUMBER_OF_PED_PROP_DRAWABLE_VARIATIONS](#\_0x5FAF9754E789FB47)\
2439
- * [GET_NUMBER_OF_PED_PROP_TEXTURE_VARIATIONS](#\_0xA6E7F1CEB523E171)
2440
- * [List of component/props ID](https://gtaxscripting.blogspot.com/2016/04/gta-v-peds-component-and-props.html) of player_two with examples
2450
+ * **0**: Hats
2451
+ * **1**: Glasses
2452
+ * **2**: Ears
2453
+ * **6**: Watches
2454
+ * **7**: Bracelets
2455
+ * List of Prop IDs
2456
+ * ```cpp
2457
+ * // Props
2458
+ * enum eAnchorPoints
2459
+ * {
2460
+ * ANCHOR_HEAD = 0, // "p_head"
2461
+ * ANCHOR_EYES = 1, // "p_eyes"
2462
+ * ANCHOR_EARS = 2, // "p_ears"
2463
+ * ANCHOR_MOUTH = 3, // "p_mouth"
2464
+ * ANCHOR_LEFT_HAND = 4, // "p_lhand"
2465
+ * ANCHOR_RIGHT_HAND = 5, // "p_rhand"
2466
+ * ANCHOR_LEFT_WRIST = 6, // "p_lwrist"
2467
+ * ANCHOR_RIGHT_WRIST = 7, // "p_rwrist"
2468
+ * ANCHOR_HIP = 8, // "p_lhip"
2469
+ * ANCHOR_LEFT_FOOT = 9, // "p_lfoot"
2470
+ * ANCHOR_RIGHT_FOOT = 10, // "p_rfoot"
2471
+ * ANCHOR_PH_L_HAND = 11, // "ph_lhand"
2472
+ * ANCHOR_PH_R_HAND = 12, // "ph_rhand"
2473
+ * NUM_ANCHORS = 13,
2474
+ * };
2475
+ * ```
2441
2476
  * @param ped The ped handle.
2442
- * @param componentId The component that you want to set.
2443
- * @param drawableId The drawable id that is going to be set.
2444
- * @param textureId The texture id of the drawable.
2477
+ * @param componentId The component that you want to set. Refer to [SET_PED_COMPONENT_VARIATION](#\_0x262B14F48D29DE80).
2478
+ * @param drawableId The drawable id that is going to be set. Refer to [GET_NUMBER_OF_PED_PROP_DRAWABLE_VARIATIONS](#\_0x5FAF9754E789FB47).
2479
+ * @param textureId The texture id of the drawable. Refer to [GET_NUMBER_OF_PED_PROP_TEXTURE_VARIATIONS](#\_0xA6E7F1CEB523E171).
2445
2480
  * @param attach Attached or not.
2446
2481
  */
2447
2482
  declare function SetPedPropIndex(ped: number, componentId: number, drawableId: number, textureId: number, attach: boolean): void;
2448
2483
 
2449
2484
  /**
2450
2485
  * p1 is always 0 in R* scripts; and a quick disassembly seems to indicate that p1 is unused.
2451
- * List of component/props ID:
2452
- * gtaxscripting.blogspot.com/2016/04/gta-v-peds-component-and-props.html
2453
2486
  */
2454
2487
  declare function SetPedRandomComponentVariation(ped: number, p1: number): void;
2455
2488
 
2456
2489
  /**
2457
- * List of component/props ID
2458
- * gtaxscripting.blogspot.com/2016/04/gta-v-peds-component-and-props.html
2490
+ * SET_PED_RANDOM_PROPS
2491
+ * @param ped The ped handle.
2459
2492
  */
2460
2493
  declare function SetPedRandomProps(ped: number): void;
2461
2494
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@citizenfx/server",
3
- "version": "2.0.6550-1",
3
+ "version": "2.0.6551-1",
4
4
  "description": "Typings for the CitizenFX server JS API.",
5
5
  "main": "index.js",
6
6
  "scripts": {