@citizenfx/server 2.0.12208-1 → 2.0.12461-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 +9 -4
- package/package.json +1 -1
package/natives_server.d.ts
CHANGED
|
@@ -326,7 +326,7 @@ declare function CreateVehicle(modelHash: string | number, x: number, y: number,
|
|
|
326
326
|
* @param y Spawn coordinate Y component.
|
|
327
327
|
* @param z Spawn coordinate Z component.
|
|
328
328
|
* @param heading Heading to face towards, in degrees.
|
|
329
|
-
* @return A script handle for the vehicle.
|
|
329
|
+
* @return A script handle for the vehicle, or 0 if the vehicle failed to be created.
|
|
330
330
|
*/
|
|
331
331
|
declare function CreateVehicleServerSetter(modelHash: string | number, _type: string, x: number, y: number, z: number, heading: number): number;
|
|
332
332
|
|
|
@@ -1362,10 +1362,12 @@ declare function GetVehicleDirtLevel(vehicle: number): number;
|
|
|
1362
1362
|
declare function GetVehicleDoorLockStatus(vehicle: number): number;
|
|
1363
1363
|
|
|
1364
1364
|
/**
|
|
1365
|
-
*
|
|
1365
|
+
* Returns the open position of the specified door on the target vehicle.
|
|
1366
|
+
* @param vehicle The target vehicle.
|
|
1367
|
+
* @param doorIndex Index of door to check (0-6).
|
|
1366
1368
|
* @return A number from 0 to 7.
|
|
1367
1369
|
*/
|
|
1368
|
-
declare function GetVehicleDoorStatus(vehicle: number): number;
|
|
1370
|
+
declare function GetVehicleDoorStatus(vehicle: number, doorIndex: number): number;
|
|
1369
1371
|
|
|
1370
1372
|
/**
|
|
1371
1373
|
* Currently it only works when set to "all players".
|
|
@@ -1742,7 +1744,10 @@ declare function IsVehicleWindowIntact(vehicle: number, windowIndex: number): bo
|
|
|
1742
1744
|
declare function LoadPlayerCommerceData(playerSrc: string): void;
|
|
1743
1745
|
|
|
1744
1746
|
/**
|
|
1745
|
-
* Requests the commerce data from Tebex for the specified player, including the owned SKUs.
|
|
1747
|
+
* Requests the commerce data from Tebex for the specified player, including the owned SKUs.
|
|
1748
|
+
* Use [`IS_PLAYER_COMMERCE_INFO_LOADED_EXT`](#\_0x1D14F4FE) to check if it has loaded.
|
|
1749
|
+
* This will not automatically update whenever a client purchases a package, if you want to fetch new purchases you will need to call this native again.
|
|
1750
|
+
* This native will temporarily cache the players commerce data for 10 seconds, a call to this native after 10 seconds will re-fetch the players commerce data.
|
|
1746
1751
|
* @param playerSrc The player handle
|
|
1747
1752
|
*/
|
|
1748
1753
|
declare function LoadPlayerCommerceDataExt(playerSrc: string): void;
|