@citizenfx/server 2.0.6346-1 → 2.0.6348-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.
Files changed (2) hide show
  1. package/natives_server.d.ts +394 -0
  2. package/package.json +1 -1
@@ -146,6 +146,9 @@ declare function CancelEvent(): void;
146
146
  */
147
147
  declare function ClearPedProp(ped: number, propId: number): void;
148
148
 
149
+ /**
150
+ * CLEAR_PED_SECONDARY_TASK
151
+ */
149
152
  declare function ClearPedSecondaryTask(ped: number): void;
150
153
 
151
154
  /**
@@ -210,6 +213,10 @@ declare function CreateObjectNoOffset(modelHash: string | number, x: number, y:
210
213
  */
211
214
  declare function CreatePed(pedType: number, modelHash: string | number, x: number, y: number, z: number, heading: number, isNetwork: boolean, bScriptHostPed: boolean): number;
212
215
 
216
+ /**
217
+ * CREATE_PED_INSIDE_VEHICLE
218
+ * @param pedType See [`CREATE_PED`](#\_0xD49F9B0955C367DE)
219
+ */
213
220
  declare function CreatePedInsideVehicle(vehicle: number, pedType: number, modelHash: string | number, seat: number, isNetwork: boolean, bScriptHostPed: boolean): number;
214
221
 
215
222
  /**
@@ -249,8 +256,15 @@ declare function CreateVehicleServerSetter(modelHash: string | number, _type: st
249
256
  */
250
257
  declare function DeleteEntity(entity: number): void;
251
258
 
259
+ /**
260
+ * DELETE_FUNCTION_REFERENCE
261
+ */
252
262
  declare function DeleteFunctionReference(referenceIdentity: string): void;
253
263
 
264
+ /**
265
+ * DELETE_RESOURCE_KVP
266
+ * @param key The key to delete
267
+ */
254
268
  declare function DeleteResourceKvp(key: string): void;
255
269
 
256
270
  /**
@@ -259,6 +273,9 @@ declare function DeleteResourceKvp(key: string): void;
259
273
  */
260
274
  declare function DeleteResourceKvpNoSync(key: string): void;
261
275
 
276
+ /**
277
+ * DOES_ENTITY_EXIST
278
+ */
262
279
  declare function DoesEntityExist(entity: number): boolean;
263
280
 
264
281
  /**
@@ -277,12 +294,26 @@ declare function DoesPlayerOwnSku(playerSrc: string, skuId: number): boolean;
277
294
  */
278
295
  declare function DoesPlayerOwnSkuExt(playerSrc: string, skuId: number): boolean;
279
296
 
297
+ /**
298
+ * DROP_PLAYER
299
+ */
280
300
  declare function DropPlayer(playerSrc: string, reason: string): void;
281
301
 
302
+ /**
303
+ * DUPLICATE_FUNCTION_REFERENCE
304
+ */
282
305
  declare function DuplicateFunctionReference(referenceIdentity: string): string;
283
306
 
307
+ /**
308
+ * ENABLE_ENHANCED_HOST_SUPPORT
309
+ */
284
310
  declare function EnableEnhancedHostSupport(enabled: boolean): void;
285
311
 
312
+ /**
313
+ * END_FIND_KVP
314
+ * @param handle The KVP find handle returned from [START_FIND_KVP](#\_0xDD379006)
315
+ * @return None.
316
+ */
286
317
  declare function EndFindKvp(handle: number): void;
287
318
 
288
319
  /**
@@ -290,10 +321,21 @@ declare function EndFindKvp(handle: number): void;
290
321
  */
291
322
  declare function EnsureEntityStateBag(entity: number): void;
292
323
 
324
+ /**
325
+ * EXECUTE_COMMAND
326
+ */
293
327
  declare function ExecuteCommand(commandString: string): void;
294
328
 
329
+ /**
330
+ * FIND_KVP
331
+ * @param handle The KVP find handle returned from [START_FIND_KVP](#\_0xDD379006)
332
+ * @return None.
333
+ */
295
334
  declare function FindKvp(handle: number): string;
296
335
 
336
+ /**
337
+ * FLAG_SERVER_AS_PRIVATE
338
+ */
297
339
  declare function FlagServerAsPrivate(private_: boolean): void;
298
340
 
299
341
  /**
@@ -309,6 +351,10 @@ declare function FlushResourceKvp(): void;
309
351
  */
310
352
  declare function FreezeEntityPosition(entity: number, toggle: boolean): void;
311
353
 
354
+ /**
355
+ * GET_AIR_DRAG_MULTIPLIER_FOR_PLAYERS_VEHICLE
356
+ * @param playerSrc The player handle
357
+ */
312
358
  declare function GetAirDragMultiplierForPlayersVehicle(playerSrc: string): number;
313
359
 
314
360
  /**
@@ -393,6 +439,9 @@ declare function GetEntityCoords(entity: number): number[];
393
439
  */
394
440
  declare function GetEntityFromStateBagName(bagName: string): number;
395
441
 
442
+ /**
443
+ * GET_ENTITY_HEADING
444
+ */
396
445
  declare function GetEntityHeading(entity: number): number;
397
446
 
398
447
  /**
@@ -405,6 +454,9 @@ declare function GetEntityHealth(entity: number): number;
405
454
  */
406
455
  declare function GetEntityMaxHealth(entity: number): number;
407
456
 
457
+ /**
458
+ * GET_ENTITY_MODEL
459
+ */
408
460
  declare function GetEntityModel(entity: number): number;
409
461
 
410
462
  /**
@@ -429,8 +481,14 @@ enum ePopulationType
429
481
  */
430
482
  declare function GetEntityPopulationType(entity: number): number;
431
483
 
484
+ /**
485
+ * GET_ENTITY_ROTATION
486
+ */
432
487
  declare function GetEntityRotation(entity: number): number[];
433
488
 
489
+ /**
490
+ * GET_ENTITY_ROTATION_VELOCITY
491
+ */
434
492
  declare function GetEntityRotationVelocity(entity: number): number[];
435
493
 
436
494
  /**
@@ -441,6 +499,9 @@ declare function GetEntityRotationVelocity(entity: number): number[];
441
499
  */
442
500
  declare function GetEntityRoutingBucket(entity: number): number;
443
501
 
502
+ /**
503
+ * GET_ENTITY_SCRIPT
504
+ */
444
505
  declare function GetEntityScript(entity: number): string;
445
506
 
446
507
  /**
@@ -481,6 +542,9 @@ declare function GetEntitySpeed(entity: number): number;
481
542
  */
482
543
  declare function GetEntityType(entity: number): number;
483
544
 
545
+ /**
546
+ * GET_ENTITY_VELOCITY
547
+ */
484
548
  declare function GetEntityVelocity(entity: number): number[];
485
549
 
486
550
  /**
@@ -532,20 +596,48 @@ declare function GetGameTimer(): number;
532
596
  */
533
597
  declare function GetHashKey(model: string): number;
534
598
 
599
+ /**
600
+ * GET_HELI_MAIN_ROTOR_HEALTH
601
+ * @param vehicle The target vehicle.
602
+ * @return See the client-side [GET_HELI_MAIN_ROTOR_HEALTH](https://docs.fivem.net/natives/?\_0xE4CB7541F413D2C5) for the return value.
603
+ */
535
604
  declare function GetHeliMainRotorHealth(vehicle: number): number;
536
605
 
606
+ /**
607
+ * GET_HELI_TAIL_ROTOR_HEALTH
608
+ * @param vehicle The target vehicle.
609
+ * @return See the client-side [GET_HELI_TAIL_ROTOR_HEALTH](https://docs.fivem.net/natives/?\_0xAE8CE82A4219AC8C) for the return value.
610
+ */
537
611
  declare function GetHeliTailRotorHealth(vehicle: number): number;
538
612
 
613
+ /**
614
+ * GET_HOST_ID
615
+ */
539
616
  declare function GetHostId(): string;
540
617
 
618
+ /**
619
+ * GET_INSTANCE_ID
620
+ */
541
621
  declare function GetInstanceId(): number;
542
622
 
623
+ /**
624
+ * GET_INVOKING_RESOURCE
625
+ */
543
626
  declare function GetInvokingResource(): string;
544
627
 
628
+ /**
629
+ * GET_IS_VEHICLE_ENGINE_RUNNING
630
+ */
545
631
  declare function GetIsVehicleEngineRunning(vehicle: number): boolean;
546
632
 
633
+ /**
634
+ * GET_IS_VEHICLE_PRIMARY_COLOUR_CUSTOM
635
+ */
547
636
  declare function GetIsVehiclePrimaryColourCustom(vehicle: number): boolean;
548
637
 
638
+ /**
639
+ * GET_IS_VEHICLE_SECONDARY_COLOUR_CUSTOM
640
+ */
549
641
  declare function GetIsVehicleSecondaryColourCustom(vehicle: number): boolean;
550
642
 
551
643
  /**
@@ -555,12 +647,27 @@ declare function GetIsVehicleSecondaryColourCustom(vehicle: number): boolean;
555
647
  */
556
648
  declare function GetLandingGearState(vehicle: number): number;
557
649
 
650
+ /**
651
+ * GET_LAST_PED_IN_VEHICLE_SEAT
652
+ * @param vehicle The target vehicle.
653
+ * @param seatIndex See eSeatPosition declared in [`IS_VEHICLE_SEAT_FREE`](#\_0x22AC59A870E6A669).
654
+ * @return The last ped in the specified seat of the passed vehicle. Returns 0 if the specified seat was never occupied or the last ped does not exist anymore.
655
+ */
558
656
  declare function GetLastPedInVehicleSeat(vehicle: number, seatIndex: number): number;
559
657
 
658
+ /**
659
+ * GET_NUM_PLAYER_IDENTIFIERS
660
+ */
560
661
  declare function GetNumPlayerIdentifiers(playerSrc: string): number;
561
662
 
663
+ /**
664
+ * GET_NUM_PLAYER_INDICES
665
+ */
562
666
  declare function GetNumPlayerIndices(): number;
563
667
 
668
+ /**
669
+ * GET_NUM_PLAYER_TOKENS
670
+ */
564
671
  declare function GetNumPlayerTokens(playerSrc: string): number;
565
672
 
566
673
  /**
@@ -571,18 +678,44 @@ declare function GetNumPlayerTokens(playerSrc: string): number;
571
678
  */
572
679
  declare function GetNumResourceMetadata(resourceName: string, metadataKey: string): number;
573
680
 
681
+ /**
682
+ * GET_NUM_RESOURCES
683
+ */
574
684
  declare function GetNumResources(): number;
575
685
 
686
+ /**
687
+ * GET_PASSWORD_HASH
688
+ */
576
689
  declare function GetPasswordHash(password: string): string;
577
690
 
691
+ /**
692
+ * GET_PED_ARMOUR
693
+ */
578
694
  declare function GetPedArmour(ped: number): number;
579
695
 
696
+ /**
697
+ * GET_PED_CAUSE_OF_DEATH
698
+ */
580
699
  declare function GetPedCauseOfDeath(ped: number): number;
581
700
 
701
+ /**
702
+ * GET_PED_DESIRED_HEADING
703
+ * @param ped The target ped
704
+ * @return Returns ped's desired heading.
705
+ */
582
706
  declare function GetPedDesiredHeading(ped: number): number;
583
707
 
708
+ /**
709
+ * GET_PED_IN_VEHICLE_SEAT
710
+ * @param vehicle The target vehicle.
711
+ * @param seatIndex See eSeatPosition declared in [`IS_VEHICLE_SEAT_FREE`](#\_0x22AC59A870E6A669).
712
+ * @return The ped in the specified seat of the passed vehicle. Returns 0 if the specified seat is not occupied.
713
+ */
584
714
  declare function GetPedInVehicleSeat(vehicle: number, seatIndex: number): number;
585
715
 
716
+ /**
717
+ * GET_PED_MAX_HEALTH
718
+ */
586
719
  declare function GetPedMaxHealth(ped: number): number;
587
720
 
588
721
  /**
@@ -631,6 +764,9 @@ declare function GetPedSpecificTaskType(ped: number, index: number): number;
631
764
  */
632
765
  declare function GetPlayerCameraRotation(playerSrc: string): number[];
633
766
 
767
+ /**
768
+ * GET_PLAYER_ENDPOINT
769
+ */
634
770
  declare function GetPlayerEndpoint(playerSrc: string): string;
635
771
 
636
772
  /**
@@ -640,6 +776,9 @@ declare function GetPlayerEndpoint(playerSrc: string): string;
640
776
  */
641
777
  declare function GetPlayerFakeWantedLevel(playerSrc: string): number;
642
778
 
779
+ /**
780
+ * GET_PLAYER_FROM_INDEX
781
+ */
643
782
  declare function GetPlayerFromIndex(index: number): string;
644
783
 
645
784
  /**
@@ -649,8 +788,14 @@ declare function GetPlayerFromIndex(index: number): string;
649
788
  */
650
789
  declare function GetPlayerFromStateBagName(bagName: string): number;
651
790
 
791
+ /**
792
+ * GET_PLAYER_GUID
793
+ */
652
794
  declare function GetPlayerGuid(playerSrc: string): string;
653
795
 
796
+ /**
797
+ * GET_PLAYER_IDENTIFIER
798
+ */
654
799
  declare function GetPlayerIdentifier(playerSrc: string, identifier: number): string;
655
800
 
656
801
  /**
@@ -661,12 +806,28 @@ declare function GetPlayerIdentifier(playerSrc: string, identifier: number): str
661
806
  */
662
807
  declare function GetPlayerIdentifierByType(playerSrc: string, identifierType: string): string;
663
808
 
809
+ /**
810
+ * GET_PLAYER_INVINCIBLE
811
+ * @param playerSrc The player handle
812
+ * @return A boolean to tell if the player is invincible.
813
+ */
664
814
  declare function GetPlayerInvincible(playerSrc: string): boolean;
665
815
 
816
+ /**
817
+ * GET_PLAYER_LAST_MSG
818
+ */
666
819
  declare function GetPlayerLastMsg(playerSrc: string): number;
667
820
 
821
+ /**
822
+ * GET_PLAYER_MAX_ARMOUR
823
+ * @param playerSrc The player handle
824
+ */
668
825
  declare function GetPlayerMaxArmour(playerSrc: string): number;
669
826
 
827
+ /**
828
+ * GET_PLAYER_MAX_HEALTH
829
+ * @param playerSrc The player handle
830
+ */
670
831
  declare function GetPlayerMaxHealth(playerSrc: string): number;
671
832
 
672
833
  /**
@@ -676,10 +837,19 @@ declare function GetPlayerMaxHealth(playerSrc: string): number;
676
837
  */
677
838
  declare function GetPlayerMeleeWeaponDamageModifier(playerId: string): number;
678
839
 
840
+ /**
841
+ * GET_PLAYER_NAME
842
+ */
679
843
  declare function GetPlayerName(playerSrc: string): string;
680
844
 
845
+ /**
846
+ * GET_PLAYER_PED
847
+ */
681
848
  declare function GetPlayerPed(playerSrc: string): number;
682
849
 
850
+ /**
851
+ * GET_PLAYER_PING
852
+ */
683
853
  declare function GetPlayerPing(playerSrc: string): number;
684
854
 
685
855
  /**
@@ -690,6 +860,10 @@ declare function GetPlayerPing(playerSrc: string): number;
690
860
  */
691
861
  declare function GetPlayerRoutingBucket(playerSrc: string): number;
692
862
 
863
+ /**
864
+ * GET_PLAYER_TEAM
865
+ * @param playerSrc The player handle
866
+ */
693
867
  declare function GetPlayerTeam(playerSrc: string): number;
694
868
 
695
869
  /**
@@ -764,6 +938,11 @@ declare function GetPlayerWeaponDefenseModifier_2(playerId: string): number;
764
938
  */
765
939
  declare function GetRegisteredCommands(): any;
766
940
 
941
+ /**
942
+ * GET_RESOURCE_BY_FIND_INDEX
943
+ * @param findIndex The index of the resource (starting at 0)
944
+ * @return The resource name as a `string`
945
+ */
767
946
  declare function GetResourceByFindIndex(findIndex: number): string;
768
947
 
769
948
  /**
@@ -823,20 +1002,48 @@ declare function GetSelectedPedWeapon(ped: number): number;
823
1002
  */
824
1003
  declare function GetStateBagValue(bagName: string, key: string): any;
825
1004
 
1005
+ /**
1006
+ * GET_TRAIN_CARRIAGE_ENGINE
1007
+ * @param train The entity handle.
1008
+ * @return The train engine carriage.
1009
+ */
826
1010
  declare function GetTrainCarriageEngine(train: number): number;
827
1011
 
1012
+ /**
1013
+ * GET_TRAIN_CARRIAGE_INDEX
1014
+ * @param train The entity handle.
1015
+ * @return The carriage index. -1 returned if invalid result.
1016
+ */
828
1017
  declare function GetTrainCarriageIndex(train: number): number;
829
1018
 
1019
+ /**
1020
+ * GET_VEHICLE_BODY_HEALTH
1021
+ */
830
1022
  declare function GetVehicleBodyHealth(vehicle: number): number;
831
1023
 
1024
+ /**
1025
+ * GET_VEHICLE_COLOURS
1026
+ */
832
1027
  declare function GetVehicleColours(vehicle: number): [number, number];
833
1028
 
1029
+ /**
1030
+ * GET_VEHICLE_CUSTOM_PRIMARY_COLOUR
1031
+ */
834
1032
  declare function GetVehicleCustomPrimaryColour(vehicle: number): [number, number, number];
835
1033
 
1034
+ /**
1035
+ * GET_VEHICLE_CUSTOM_SECONDARY_COLOUR
1036
+ */
836
1037
  declare function GetVehicleCustomSecondaryColour(vehicle: number): [number, number, number];
837
1038
 
1039
+ /**
1040
+ * GET_VEHICLE_DASHBOARD_COLOUR
1041
+ */
838
1042
  declare function GetVehicleDashboardColour(vehicle: number, color?: number): number;
839
1043
 
1044
+ /**
1045
+ * GET_VEHICLE_DIRT_LEVEL
1046
+ */
840
1047
  declare function GetVehicleDirtLevel(vehicle: number): number;
841
1048
 
842
1049
  /**
@@ -859,6 +1066,10 @@ declare function GetVehicleDirtLevel(vehicle: number): number;
859
1066
  */
860
1067
  declare function GetVehicleDoorLockStatus(vehicle: number): number;
861
1068
 
1069
+ /**
1070
+ * GET_VEHICLE_DOOR_STATUS
1071
+ * @return A number from 0 to 7.
1072
+ */
862
1073
  declare function GetVehicleDoorStatus(vehicle: number): number;
863
1074
 
864
1075
  /**
@@ -866,8 +1077,14 @@ declare function GetVehicleDoorStatus(vehicle: number): number;
866
1077
  */
867
1078
  declare function GetVehicleDoorsLockedForPlayer(vehicle: number): number;
868
1079
 
1080
+ /**
1081
+ * GET_VEHICLE_ENGINE_HEALTH
1082
+ */
869
1083
  declare function GetVehicleEngineHealth(vehicle: number): number;
870
1084
 
1085
+ /**
1086
+ * GET_VEHICLE_EXTRA_COLOURS
1087
+ */
871
1088
  declare function GetVehicleExtraColours(vehicle: number): [number, number];
872
1089
 
873
1090
  /**
@@ -877,8 +1094,14 @@ declare function GetVehicleExtraColours(vehicle: number): [number, number];
877
1094
  */
878
1095
  declare function GetVehicleFlightNozzlePosition(vehicle: number): number;
879
1096
 
1097
+ /**
1098
+ * GET_VEHICLE_HANDBRAKE
1099
+ */
880
1100
  declare function GetVehicleHandbrake(vehicle: number): boolean;
881
1101
 
1102
+ /**
1103
+ * GET_VEHICLE_HEADLIGHTS_COLOUR
1104
+ */
882
1105
  declare function GetVehicleHeadlightsColour(vehicle: number): number;
883
1106
 
884
1107
  /**
@@ -888,10 +1111,19 @@ declare function GetVehicleHeadlightsColour(vehicle: number): number;
888
1111
  */
889
1112
  declare function GetVehicleHomingLockonState(vehicle: number): number;
890
1113
 
1114
+ /**
1115
+ * GET_VEHICLE_INTERIOR_COLOUR
1116
+ */
891
1117
  declare function GetVehicleInteriorColour(vehicle: number, color?: number): number;
892
1118
 
1119
+ /**
1120
+ * GET_VEHICLE_LIGHTS_STATE
1121
+ */
893
1122
  declare function GetVehicleLightsState(vehicle: number): [boolean, any /* actually bool */, any /* actually bool */];
894
1123
 
1124
+ /**
1125
+ * GET_VEHICLE_LIVERY
1126
+ */
895
1127
  declare function GetVehicleLivery(vehicle: number): number;
896
1128
 
897
1129
  /**
@@ -901,8 +1133,14 @@ declare function GetVehicleLivery(vehicle: number): number;
901
1133
  */
902
1134
  declare function GetVehicleLockOnTarget(vehicle: number): number;
903
1135
 
1136
+ /**
1137
+ * GET_VEHICLE_NUMBER_PLATE_TEXT
1138
+ */
904
1139
  declare function GetVehicleNumberPlateText(vehicle: number): string;
905
1140
 
1141
+ /**
1142
+ * GET_VEHICLE_NUMBER_PLATE_TEXT_INDEX
1143
+ */
906
1144
  declare function GetVehicleNumberPlateTextIndex(vehicle: number): number;
907
1145
 
908
1146
  /**
@@ -913,12 +1151,24 @@ declare function GetVehicleNumberPlateTextIndex(vehicle: number): number;
913
1151
  */
914
1152
  declare function GetVehiclePedIsIn(ped: number, lastVehicle: boolean): number;
915
1153
 
1154
+ /**
1155
+ * GET_VEHICLE_PETROL_TANK_HEALTH
1156
+ */
916
1157
  declare function GetVehiclePetrolTankHealth(vehicle: number): number;
917
1158
 
1159
+ /**
1160
+ * GET_VEHICLE_RADIO_STATION_INDEX
1161
+ */
918
1162
  declare function GetVehicleRadioStationIndex(vehicle: number): number;
919
1163
 
1164
+ /**
1165
+ * GET_VEHICLE_ROOF_LIVERY
1166
+ */
920
1167
  declare function GetVehicleRoofLivery(vehicle: number): number;
921
1168
 
1169
+ /**
1170
+ * GET_VEHICLE_STEERING_ANGLE
1171
+ */
922
1172
  declare function GetVehicleSteeringAngle(vehicle: number): number;
923
1173
 
924
1174
  /**
@@ -937,22 +1187,49 @@ declare function GetVehicleSteeringAngle(vehicle: number): number;
937
1187
  */
938
1188
  declare function GetVehicleType(vehicle: number): string;
939
1189
 
1190
+ /**
1191
+ * GET_VEHICLE_TYRE_SMOKE_COLOR
1192
+ */
940
1193
  declare function GetVehicleTyreSmokeColor(vehicle: number): [number, number, number];
941
1194
 
1195
+ /**
1196
+ * GET_VEHICLE_WHEEL_TYPE
1197
+ */
942
1198
  declare function GetVehicleWheelType(vehicle: number): number;
943
1199
 
1200
+ /**
1201
+ * GET_VEHICLE_WINDOW_TINT
1202
+ */
944
1203
  declare function GetVehicleWindowTint(vehicle: number): number;
945
1204
 
1205
+ /**
1206
+ * GIVE_WEAPON_COMPONENT_TO_PED
1207
+ */
946
1208
  declare function GiveWeaponComponentToPed(ped: number, weaponHash: string | number, componentHash: string | number): void;
947
1209
 
1210
+ /**
1211
+ * GIVE_WEAPON_TO_PED
1212
+ */
948
1213
  declare function GiveWeaponToPed(ped: number, weaponHash: string | number, ammoCount: number, isHidden: boolean, bForceInHand: boolean): void;
949
1214
 
1215
+ /**
1216
+ * HAS_ENTITY_BEEN_MARKED_AS_NO_LONGER_NEEDED
1217
+ */
950
1218
  declare function HasEntityBeenMarkedAsNoLongerNeeded(vehicle: number): boolean;
951
1219
 
1220
+ /**
1221
+ * HAS_VEHICLE_BEEN_OWNED_BY_PLAYER
1222
+ */
952
1223
  declare function HasVehicleBeenOwnedByPlayer(vehicle: number): boolean;
953
1224
 
1225
+ /**
1226
+ * INVOKE_FUNCTION_REFERENCE
1227
+ */
954
1228
  declare function InvokeFunctionReference(referenceIdentity: string, argsSerialized: string, argsLength: number, retvalLength?: number): [string, number];
955
1229
 
1230
+ /**
1231
+ * IS_ACE_ALLOWED
1232
+ */
956
1233
  declare function IsAceAllowed(object: string): boolean;
957
1234
 
958
1235
  /**
@@ -973,6 +1250,9 @@ declare function IsEntityVisible(entity: number): boolean;
973
1250
  */
974
1251
  declare function IsPedAPlayer(ped: number): boolean;
975
1252
 
1253
+ /**
1254
+ * IS_PLAYER_ACE_ALLOWED
1255
+ */
976
1256
  declare function IsPlayerAceAllowed(playerSrc: string, object: string): boolean;
977
1257
 
978
1258
  /**
@@ -998,16 +1278,36 @@ declare function IsPlayerCommerceInfoLoadedExt(playerSrc: string): boolean;
998
1278
  */
999
1279
  declare function IsPlayerEvadingWantedLevel(playerSrc: string): boolean;
1000
1280
 
1281
+ /**
1282
+ * IS_PLAYER_USING_SUPER_JUMP
1283
+ * @param playerSrc The player handle
1284
+ * @return A boolean.
1285
+ */
1001
1286
  declare function IsPlayerUsingSuperJump(playerSrc: string): boolean;
1002
1287
 
1288
+ /**
1289
+ * IS_PRINCIPAL_ACE_ALLOWED
1290
+ */
1003
1291
  declare function IsPrincipalAceAllowed(principal: string, object: string): boolean;
1004
1292
 
1293
+ /**
1294
+ * IS_VEHICLE_ENGINE_STARTING
1295
+ */
1005
1296
  declare function IsVehicleEngineStarting(vehicle: number): boolean;
1006
1297
 
1298
+ /**
1299
+ * IS_VEHICLE_EXTRA_TURNED_ON
1300
+ */
1007
1301
  declare function IsVehicleExtraTurnedOn(vehicle: number, extraId: number): boolean;
1008
1302
 
1303
+ /**
1304
+ * IS_VEHICLE_SIREN_ON
1305
+ */
1009
1306
  declare function IsVehicleSirenOn(vehicle: number): boolean;
1010
1307
 
1308
+ /**
1309
+ * IS_VEHICLE_TYRE_BURST
1310
+ */
1011
1311
  declare function IsVehicleTyreBurst(vehicle: number, wheelID: number, completely: boolean): boolean;
1012
1312
 
1013
1313
  /**
@@ -1052,6 +1352,9 @@ declare function MumbleIsPlayerMuted(playerSrc: number): boolean;
1052
1352
  */
1053
1353
  declare function MumbleSetPlayerMuted(playerSrc: number, toggle: boolean): void;
1054
1354
 
1355
+ /**
1356
+ * NETWORK_GET_ENTITY_FROM_NETWORK_ID
1357
+ */
1055
1358
  declare function NetworkGetEntityFromNetworkId(netId: number): number;
1056
1359
 
1057
1360
  /**
@@ -1068,12 +1371,25 @@ declare function NetworkGetEntityOwner(entity: number): number;
1068
1371
  */
1069
1372
  declare function NetworkGetFirstEntityOwner(entity: number): number;
1070
1373
 
1374
+ /**
1375
+ * NETWORK_GET_NETWORK_ID_FROM_ENTITY
1376
+ */
1071
1377
  declare function NetworkGetNetworkIdFromEntity(entity: number): number;
1072
1378
 
1379
+ /**
1380
+ * NETWORK_GET_VOICE_PROXIMITY_OVERRIDE
1381
+ * @param playerSrc The player handle
1382
+ */
1073
1383
  declare function NetworkGetVoiceProximityOverride(playerSrc: string): number[];
1074
1384
 
1385
+ /**
1386
+ * PERFORM_HTTP_REQUEST_INTERNAL
1387
+ */
1075
1388
  declare function PerformHttpRequestInternal(requestData: string, requestDataLength: number): number;
1076
1389
 
1390
+ /**
1391
+ * PERFORM_HTTP_REQUEST_INTERNAL_EX
1392
+ */
1077
1393
  declare function PerformHttpRequestInternalEx(requestData: any): number;
1078
1394
 
1079
1395
  /**
@@ -1170,6 +1486,9 @@ declare function RemoveBlip(blip: number): void;
1170
1486
  */
1171
1487
  declare function RemoveStateBagChangeHandler(cookie: number): void;
1172
1488
 
1489
+ /**
1490
+ * REMOVE_WEAPON_COMPONENT_FROM_PED
1491
+ */
1173
1492
  declare function RemoveWeaponComponentFromPed(ped: number, weaponHash: string | number, componentHash: string | number): void;
1174
1493
 
1175
1494
  /**
@@ -1228,6 +1547,9 @@ declare function ScheduleResourceTick(resourceName: string): void;
1228
1547
  */
1229
1548
  declare function SetBlipSprite(blip: number, spriteId: number): void;
1230
1549
 
1550
+ /**
1551
+ * SET_CONVAR
1552
+ */
1231
1553
  declare function SetConvar(varName: string, value: string): void;
1232
1554
 
1233
1555
  /**
@@ -1237,8 +1559,14 @@ declare function SetConvar(varName: string, value: string): void;
1237
1559
  */
1238
1560
  declare function SetConvarReplicated(varName: string, value: string): void;
1239
1561
 
1562
+ /**
1563
+ * SET_CONVAR_SERVER_INFO
1564
+ */
1240
1565
  declare function SetConvarServerInfo(varName: string, value: string): void;
1241
1566
 
1567
+ /**
1568
+ * SET_CURRENT_PED_WEAPON
1569
+ */
1242
1570
  declare function SetCurrentPedWeapon(ped: number, weaponHash: string | number, bForceInHand: boolean): void;
1243
1571
 
1244
1572
  /**
@@ -1269,6 +1597,10 @@ declare function SetEntityDistanceCullingRadius(entity: number, radius: number):
1269
1597
  */
1270
1598
  declare function SetEntityHeading(entity: number, heading: number): void;
1271
1599
 
1600
+ /**
1601
+ * SET_ENTITY_ROTATION
1602
+ * @param rotationOrder The order yaw pitch roll are applied, see [`GET_ENTITY_ROTATION`](#\_0xAFBD61CC738D9EB9).
1603
+ */
1272
1604
  declare function SetEntityRotation(entity: number, pitch: number, roll: number, yaw: number, rotationOrder: number, p5: boolean): void;
1273
1605
 
1274
1606
  /**
@@ -1284,10 +1616,19 @@ declare function SetEntityRoutingBucket(entity: number, bucket: number): void;
1284
1616
  */
1285
1617
  declare function SetEntityVelocity(entity: number, x: number, y: number, z: number): void;
1286
1618
 
1619
+ /**
1620
+ * SET_GAME_TYPE
1621
+ */
1287
1622
  declare function SetGameType(gametypeName: string): void;
1288
1623
 
1624
+ /**
1625
+ * SET_HTTP_HANDLER
1626
+ */
1289
1627
  declare function SetHttpHandler(handler: Function): void;
1290
1628
 
1629
+ /**
1630
+ * SET_MAP_NAME
1631
+ */
1291
1632
  declare function SetMapName(mapName: string): void;
1292
1633
 
1293
1634
  /**
@@ -1302,6 +1643,9 @@ declare function SetPedAmmo(ped: number, weaponHash: string | number, ammo: numb
1302
1643
  */
1303
1644
  declare function SetPedArmour(ped: number, amount: number): void;
1304
1645
 
1646
+ /**
1647
+ * SET_PED_CAN_RAGDOLL
1648
+ */
1305
1649
  declare function SetPedCanRagdoll(ped: number, toggle: boolean): void;
1306
1650
 
1307
1651
  /**
@@ -1940,6 +2284,10 @@ declare function SetPedHeadOverlay(ped: number, overlayID: number, index: number
1940
2284
  */
1941
2285
  declare function SetPedHeadOverlayColor(ped: number, overlayID: number, colorType: number, colorID: number, secondColorID: number): void;
1942
2286
 
2287
+ /**
2288
+ * SET_PED_INTO_VEHICLE
2289
+ * @param seatIndex See eSeatPosition declared in [`IS_VEHICLE_SEAT_FREE`](#\_0x22AC59A870E6A669). -2 for the first available seat.
2290
+ */
1943
2291
  declare function SetPedIntoVehicle(ped: number, vehicle: number, seatIndex: number): void;
1944
2292
 
1945
2293
  /**
@@ -2125,6 +2473,9 @@ declare function SetRoutingBucketPopulationEnabled(bucketId: number, mode: boole
2125
2473
  */
2126
2474
  declare function SetStateBagValue(bagName: string, keyName: string, valueData: string, valueLength: number, replicated: boolean): void;
2127
2475
 
2476
+ /**
2477
+ * SET_VEHICLE_ALARM
2478
+ */
2128
2479
  declare function SetVehicleAlarm(vehicle: number, state: boolean): void;
2129
2480
 
2130
2481
  /**
@@ -2184,12 +2535,28 @@ declare function SetVehicleDoorBroken(vehicle: number, doorIndex: number, delete
2184
2535
  */
2185
2536
  declare function SetVehicleDoorsLocked(vehicle: number, doorLockStatus: number): void;
2186
2537
 
2538
+ /**
2539
+ * SET_VEHICLE_NUMBER_PLATE_TEXT
2540
+ * @param vehicle The vehicle to set the plate for
2541
+ * @param plateText The text to set the plate to, 8 chars maximum
2542
+ */
2187
2543
  declare function SetVehicleNumberPlateText(vehicle: number, plateText: string): void;
2188
2544
 
2545
+ /**
2546
+ * START_FIND_KVP
2547
+ * @param prefix A prefix match
2548
+ * @return A KVP find handle to use with [FIND_KVP](#\_0xBD7BEBC5) and close with [END_FIND_KVP](#\_0xB3210203)
2549
+ */
2189
2550
  declare function StartFindKvp(prefix: string): number;
2190
2551
 
2552
+ /**
2553
+ * START_RESOURCE
2554
+ */
2191
2555
  declare function StartResource(resourceName: string): boolean;
2192
2556
 
2557
+ /**
2558
+ * STOP_RESOURCE
2559
+ */
2193
2560
  declare function StopResource(resourceName: string): boolean;
2194
2561
 
2195
2562
  /**
@@ -2217,8 +2584,22 @@ declare function TaskDriveBy(driverPed: number, targetPed: number, targetVehicle
2217
2584
  */
2218
2585
  declare function TaskEnterVehicle(ped: number, vehicle: number, timeout: number, seatIndex: number, speed: number, flag: number, p6: number): void;
2219
2586
 
2587
+ /**
2588
+ * TASK_EVERYONE_LEAVE_VEHICLE
2589
+ */
2220
2590
  declare function TaskEveryoneLeaveVehicle(vehicle: number): void;
2221
2591
 
2592
+ /**
2593
+ * TASK_GO_STRAIGHT_TO_COORD
2594
+ * @param ped The ped handle.
2595
+ * @param x The x coordinate.
2596
+ * @param y The y coordinate.
2597
+ * @param z The z coordinate.
2598
+ * @param speed The ped movement speed.
2599
+ * @param timeout \-1 , other values appear to break the ped movement.
2600
+ * @param targetHeading The heading you want the ped to be on x,y,z coord.
2601
+ * @param distanceToSlide The distance from x,y,z where the ped will start sliding.
2602
+ */
2222
2603
  declare function TaskGoStraightToCoord(ped: number, x: number, y: number, z: number, speed: number, timeout: number, targetHeading: number, distanceToSlide: number): void;
2223
2604
 
2224
2605
  /**
@@ -2331,6 +2712,9 @@ declare function TaskPlayAnim(ped: number, animDictionary: string, animationName
2331
2712
  */
2332
2713
  declare function TaskPlayAnimAdvanced(ped: number, animDict: string, animName: string, posX: number, posY: number, posZ: number, rotX: number, rotY: number, rotZ: number, animEnterSpeed: number, animExitSpeed: number, duration: number, flag: number, animTime: number, p14: number, p15: number): void;
2333
2714
 
2715
+ /**
2716
+ * TASK_REACT_AND_FLEE_PED
2717
+ */
2334
2718
  declare function TaskReactAndFleePed(ped: number, fleeTarget: number): void;
2335
2719
 
2336
2720
  /**
@@ -2350,8 +2734,15 @@ declare function TaskShootAtCoord(ped: number, x: number, y: number, z: number,
2350
2734
  */
2351
2735
  declare function TaskShootAtEntity(entity: number, target: number, duration: number, firingPattern: string | number): void;
2352
2736
 
2737
+ /**
2738
+ * TASK_WARP_PED_INTO_VEHICLE
2739
+ * @param seatIndex See eSeatPosition declared in [`IS_VEHICLE_SEAT_FREE`](#\_0x22AC59A870E6A669).
2740
+ */
2353
2741
  declare function TaskWarpPedIntoVehicle(ped: number, vehicle: number, seatIndex: number): void;
2354
2742
 
2743
+ /**
2744
+ * TEMP_BAN_PLAYER
2745
+ */
2355
2746
  declare function TempBanPlayer(playerSrc: string, reason: string): void;
2356
2747
 
2357
2748
  /**
@@ -2369,6 +2760,9 @@ declare function TriggerEventInternal(eventName: string, eventPayload: string, p
2369
2760
  */
2370
2761
  declare function TriggerLatentClientEventInternal(eventName: string, eventTarget: string, eventPayload: string, payloadLength: number, bps: number): void;
2371
2762
 
2763
+ /**
2764
+ * VERIFY_PASSWORD_HASH
2765
+ */
2372
2766
  declare function VerifyPasswordHash(password: string, hash: string): boolean;
2373
2767
 
2374
2768
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@citizenfx/server",
3
- "version": "2.0.6346-1",
3
+ "version": "2.0.6348-1",
4
4
  "description": "Typings for the CitizenFX server JS API.",
5
5
  "main": "index.js",
6
6
  "scripts": {