@citizenfx/server 2.0.21130-1 → 2.0.21314-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 +20 -3
- package/package.json +1 -1
package/natives_server.d.ts
CHANGED
|
@@ -957,6 +957,13 @@ declare function GetLandingGearState(vehicle: number): number;
|
|
|
957
957
|
*/
|
|
958
958
|
declare function GetLastPedInVehicleSeat(vehicle: number, seatIndex: number): number;
|
|
959
959
|
|
|
960
|
+
/**
|
|
961
|
+
* GET_MOUNT
|
|
962
|
+
* @param ped the ped id
|
|
963
|
+
* @return Returns the entity the `ped` is currently on, or `0` if they're not on a mount.
|
|
964
|
+
*/
|
|
965
|
+
declare function GetMount(ped: number): number;
|
|
966
|
+
|
|
960
967
|
/**
|
|
961
968
|
* Gets the specific entity type (as an integer), which can be one of the following defined down below:
|
|
962
969
|
* #### FiveM:
|
|
@@ -1447,8 +1454,9 @@ declare function GetResourcePath(resourceName: string): string;
|
|
|
1447
1454
|
declare function GetResourceState(resourceName: string): string;
|
|
1448
1455
|
|
|
1449
1456
|
/**
|
|
1450
|
-
*
|
|
1457
|
+
* GET_SEAT_PED_IS_USING
|
|
1451
1458
|
* @param ped the ped id
|
|
1459
|
+
* @return Returns the seat index for specified `ped`, if the ped is not sitting in a vehicle it will return -3.
|
|
1452
1460
|
*/
|
|
1453
1461
|
declare function GetSeatPedIsUsing(ped: number): number;
|
|
1454
1462
|
|
|
@@ -1892,18 +1900,27 @@ declare function IsPedAPlayer(ped: number): boolean;
|
|
|
1892
1900
|
declare function IsPedHandcuffed(ped: number): boolean;
|
|
1893
1901
|
|
|
1894
1902
|
/**
|
|
1895
|
-
*
|
|
1903
|
+
* IS_PED_IN_ANY_VEHICLE
|
|
1896
1904
|
* @param ped the ped id
|
|
1905
|
+
* @return Returns `true` if the specified `ped` is in any vehicle
|
|
1897
1906
|
*/
|
|
1898
1907
|
declare function IsPedInAnyVehicle(ped: number): boolean;
|
|
1899
1908
|
|
|
1900
1909
|
/**
|
|
1901
|
-
*
|
|
1910
|
+
* IS_PED_IN_VEHICLE
|
|
1902
1911
|
* @param ped the ped id
|
|
1903
1912
|
* @param vehicle the vehicle id
|
|
1913
|
+
* @return Returns `true` if the specified `ped` is in the specified `vehicle`
|
|
1904
1914
|
*/
|
|
1905
1915
|
declare function IsPedInVehicle(ped: number, vehicle: number): boolean;
|
|
1906
1916
|
|
|
1917
|
+
/**
|
|
1918
|
+
* IS_PED_ON_MOUNT
|
|
1919
|
+
* @param ped the ped id
|
|
1920
|
+
* @return Returns `true` if the specified `ped` is on a mount.
|
|
1921
|
+
*/
|
|
1922
|
+
declare function IsPedOnMount(ped: number): boolean;
|
|
1923
|
+
|
|
1907
1924
|
/**
|
|
1908
1925
|
* IS_PED_RAGDOLL
|
|
1909
1926
|
* @param ped The target ped.
|