@citizenfx/server 2.0.8084-1 → 2.0.8096-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 +10 -1
- package/package.json +1 -1
package/natives_server.d.ts
CHANGED
|
@@ -425,6 +425,13 @@ declare function GetConvar(varName: string, default_: string): string;
|
|
|
425
425
|
*/
|
|
426
426
|
declare function GetConvarInt(varName: string, default_: number): number;
|
|
427
427
|
|
|
428
|
+
/**
|
|
429
|
+
* Returns the hash of weapon the Ped is currently using.
|
|
430
|
+
* @param ped The target ped.
|
|
431
|
+
* @return The weapon hash.
|
|
432
|
+
*/
|
|
433
|
+
declare function GetCurrentPedWeapon(ped: number): number;
|
|
434
|
+
|
|
428
435
|
/**
|
|
429
436
|
* Returns the name of the currently executing resource.
|
|
430
437
|
* @return The name of the resource.
|
|
@@ -1026,7 +1033,8 @@ declare function GetResourcePath(resourceName: string): string;
|
|
|
1026
1033
|
declare function GetResourceState(resourceName: string): string;
|
|
1027
1034
|
|
|
1028
1035
|
/**
|
|
1029
|
-
*
|
|
1036
|
+
* An alias of [GET_CURRENT_PED_WEAPON](#\_0xB0237302).
|
|
1037
|
+
* 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.
|
|
1030
1038
|
* @param ped The target ped.
|
|
1031
1039
|
* @return The weapon hash.
|
|
1032
1040
|
*/
|
|
@@ -1209,6 +1217,7 @@ declare function GetVehicleSteeringAngle(vehicle: number): number;
|
|
|
1209
1217
|
|
|
1210
1218
|
/**
|
|
1211
1219
|
* Returns the type of the passed vehicle.
|
|
1220
|
+
* For client scripts, reference the more detailed [GET_VEHICLE_TYPE_RAW](#\_0xDE73BC10) native.
|
|
1212
1221
|
* ### Vehicle types
|
|
1213
1222
|
* * automobile
|
|
1214
1223
|
* * bike
|