@citizenfx/server 2.0.19413-1 → 2.0.19592-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 +19 -0
- package/package.json +1 -1
package/natives_server.d.ts
CHANGED
|
@@ -1446,6 +1446,12 @@ declare function GetResourcePath(resourceName: string): string;
|
|
|
1446
1446
|
*/
|
|
1447
1447
|
declare function GetResourceState(resourceName: string): string;
|
|
1448
1448
|
|
|
1449
|
+
/**
|
|
1450
|
+
* returns the seat index of the specified ped, if not seated or not in vehicle returns -3 just client natives
|
|
1451
|
+
* @param ped the ped id
|
|
1452
|
+
*/
|
|
1453
|
+
declare function GetSeatPedIsUsing(ped: number): number;
|
|
1454
|
+
|
|
1449
1455
|
/**
|
|
1450
1456
|
* An alias of [GET_CURRENT_PED_WEAPON](#\_0xB0237302).
|
|
1451
1457
|
* Note, the client-side [GET_SELECTED_PED_WEAPON](#\_0x0A6DB4965674D243) native returns the weapon selected via the HUD (weapon wheel). This data is not available to FXServer.
|
|
@@ -1885,6 +1891,19 @@ declare function IsPedAPlayer(ped: number): boolean;
|
|
|
1885
1891
|
*/
|
|
1886
1892
|
declare function IsPedHandcuffed(ped: number): boolean;
|
|
1887
1893
|
|
|
1894
|
+
/**
|
|
1895
|
+
* returns true if the specified ped is in any vehicle
|
|
1896
|
+
* @param ped the ped id
|
|
1897
|
+
*/
|
|
1898
|
+
declare function IsPedInAnyVehicle(ped: number): boolean;
|
|
1899
|
+
|
|
1900
|
+
/**
|
|
1901
|
+
* returns true if the specified ped is in the speficied vehicle
|
|
1902
|
+
* @param ped the ped id
|
|
1903
|
+
* @param vehicle the vehicle id
|
|
1904
|
+
*/
|
|
1905
|
+
declare function IsPedInVehicle(ped: number, vehicle: number): boolean;
|
|
1906
|
+
|
|
1888
1907
|
/**
|
|
1889
1908
|
* IS_PED_RAGDOLL
|
|
1890
1909
|
* @param ped The target ped.
|