@citizenfx/server 2.0.12735-1 → 2.0.12767-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 +47 -1
- package/package.json +1 -1
package/natives_server.d.ts
CHANGED
|
@@ -972,6 +972,13 @@ declare function GetPedInVehicleSeat(vehicle: number, seatIndex: number): number
|
|
|
972
972
|
*/
|
|
973
973
|
declare function GetPedMaxHealth(ped: number): number;
|
|
974
974
|
|
|
975
|
+
/**
|
|
976
|
+
* Gets the current relationship group hash of a ped.
|
|
977
|
+
* @param ped The target ped
|
|
978
|
+
* @return The relationship group hash.
|
|
979
|
+
*/
|
|
980
|
+
declare function GetPedRelationshipGroupHash(ped: number): number;
|
|
981
|
+
|
|
975
982
|
/**
|
|
976
983
|
* Gets the script task command currently assigned to the ped.
|
|
977
984
|
* @param ped The target ped.
|
|
@@ -1037,6 +1044,13 @@ declare function GetPlayerEndpoint(playerSrc: string): string;
|
|
|
1037
1044
|
*/
|
|
1038
1045
|
declare function GetPlayerFakeWantedLevel(playerSrc: string): number;
|
|
1039
1046
|
|
|
1047
|
+
/**
|
|
1048
|
+
* Gets the focus position (i.e. the position of the active camera in the game world) of a player.
|
|
1049
|
+
* @param playerSrc The player to get the focus position of
|
|
1050
|
+
* @return Returns a `Vector3` containing the focus position of the player.
|
|
1051
|
+
*/
|
|
1052
|
+
declare function GetPlayerFocusPos(playerSrc: string): number[];
|
|
1053
|
+
|
|
1040
1054
|
/**
|
|
1041
1055
|
* GET_PLAYER_FROM_INDEX
|
|
1042
1056
|
*/
|
|
@@ -1200,10 +1214,14 @@ declare function GetPlayerWeaponDefenseModifier_2(playerId: string): number;
|
|
|
1200
1214
|
* ```
|
|
1201
1215
|
* [
|
|
1202
1216
|
* {
|
|
1203
|
-
* "name": "cmdlist"
|
|
1217
|
+
* "name": "cmdlist",
|
|
1218
|
+
* "resource": "resource",
|
|
1219
|
+
* "arity" = -1,
|
|
1204
1220
|
* },
|
|
1205
1221
|
* {
|
|
1206
1222
|
* "name": "command1"
|
|
1223
|
+
* "resource": "resource_2",
|
|
1224
|
+
* "arity" = -1,
|
|
1207
1225
|
* }
|
|
1208
1226
|
* ]
|
|
1209
1227
|
* ```
|
|
@@ -1218,6 +1236,27 @@ declare function GetRegisteredCommands(): any;
|
|
|
1218
1236
|
*/
|
|
1219
1237
|
declare function GetResourceByFindIndex(findIndex: number): string;
|
|
1220
1238
|
|
|
1239
|
+
/**
|
|
1240
|
+
* Returns all commands registered by the specified resource.
|
|
1241
|
+
* The data returned adheres to the following layout:
|
|
1242
|
+
* ```
|
|
1243
|
+
* [
|
|
1244
|
+
* {
|
|
1245
|
+
* "name": "cmdlist",
|
|
1246
|
+
* "resource": "example_resource",
|
|
1247
|
+
* "arity" = -1,
|
|
1248
|
+
* },
|
|
1249
|
+
* {
|
|
1250
|
+
* "name": "command1"
|
|
1251
|
+
* "resource": "example_resource2",
|
|
1252
|
+
* "arity" = -1,
|
|
1253
|
+
* }
|
|
1254
|
+
* ]
|
|
1255
|
+
* ```
|
|
1256
|
+
* @return An object containing registered commands.
|
|
1257
|
+
*/
|
|
1258
|
+
declare function GetResourceCommands(resource: string): any;
|
|
1259
|
+
|
|
1221
1260
|
/**
|
|
1222
1261
|
* A getter for [SET_RESOURCE_KVP_FLOAT](#\_0x9ADD2938).
|
|
1223
1262
|
* @param key The key to fetch
|
|
@@ -1698,6 +1737,13 @@ declare function IsPlayerCommerceInfoLoadedExt(playerSrc: string): boolean;
|
|
|
1698
1737
|
*/
|
|
1699
1738
|
declare function IsPlayerEvadingWantedLevel(playerSrc: string): boolean;
|
|
1700
1739
|
|
|
1740
|
+
/**
|
|
1741
|
+
* IS_PLAYER_IN_FREE_CAM_MODE
|
|
1742
|
+
* @param playerSrc The player to get the free camera mode status of
|
|
1743
|
+
* @return Returns if the player is in free camera mode.
|
|
1744
|
+
*/
|
|
1745
|
+
declare function IsPlayerInFreeCamMode(playerSrc: string): boolean;
|
|
1746
|
+
|
|
1701
1747
|
/**
|
|
1702
1748
|
* IS_PLAYER_USING_SUPER_JUMP
|
|
1703
1749
|
* @param playerSrc The player handle
|