@citizenfx/client 2.0.8101-1 → 2.0.8138-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_universal.d.ts +90 -102
- package/package.json +1 -1
package/natives_universal.d.ts
CHANGED
|
@@ -25669,7 +25669,7 @@ declare function N_0x2542269291c6ac84(p0: number): number;
|
|
|
25669
25669
|
* Does nothing (it's a nullsub).
|
|
25670
25670
|
* NativeDB Introduced: v323
|
|
25671
25671
|
*/
|
|
25672
|
-
declare function N_0x2555cf7da5473794():
|
|
25672
|
+
declare function N_0x2555cf7da5473794(): void;
|
|
25673
25673
|
|
|
25674
25674
|
/**
|
|
25675
25675
|
* NativeDB Added Parameter 1: char* p0
|
|
@@ -27473,7 +27473,7 @@ declare function N_0x6fd97159fe3c971a(p0: number, p1: number, p2: number, p3: nu
|
|
|
27473
27473
|
* Does nothing (it's a nullsub).
|
|
27474
27474
|
* NativeDB Introduced: v323
|
|
27475
27475
|
*/
|
|
27476
|
-
declare function N_0x6fd992c4a1c1b986():
|
|
27476
|
+
declare function N_0x6fd992c4a1c1b986(): void;
|
|
27477
27477
|
|
|
27478
27478
|
/**
|
|
27479
27479
|
* HAS_*
|
|
@@ -28940,7 +28940,7 @@ declare function N_0xaeab987727c5a8a4(p0: number): boolean;
|
|
|
28940
28940
|
* Does nothing (it's a nullsub).
|
|
28941
28941
|
* NativeDB Introduced: v323
|
|
28942
28942
|
*/
|
|
28943
|
-
declare function N_0xaedf1bc1c133d6e3():
|
|
28943
|
+
declare function N_0xaedf1bc1c133d6e3(): void;
|
|
28944
28944
|
|
|
28945
28945
|
/**
|
|
28946
28946
|
* Exemple of use(carmod_shop.c4)
|
|
@@ -42297,9 +42297,7 @@ declare function SetAnimWeight(p0: number, p1: number, p2: number, p3: number, p
|
|
|
42297
42297
|
* AUD_ANIMAL_MOOD_PLAYFUL,
|
|
42298
42298
|
* AUD_ANIMAL_MOOD_NUM_MOODS
|
|
42299
42299
|
* }
|
|
42300
|
-
*
|
|
42301
|
-
* * **animal**:
|
|
42302
|
-
* * **mood**: Refer to eAudAnimalMood
|
|
42300
|
+
* @param mood Refer to eAudAnimalMood
|
|
42303
42301
|
*/
|
|
42304
42302
|
declare function SetAnimalMood(animal: number, mood: number): void;
|
|
42305
42303
|
|
|
@@ -47844,106 +47842,96 @@ declare function SetPedCombatAbility(ped: number, p1: number): void;
|
|
|
47844
47842
|
/**
|
|
47845
47843
|
* These combat attributes seem to be the same as the BehaviourFlags from combatbehaviour.meta.
|
|
47846
47844
|
* So far, these are the equivalents found:
|
|
47847
|
-
* ```
|
|
47848
|
-
* enum
|
|
47845
|
+
* ```cpp
|
|
47846
|
+
* enum eCombatAttribute
|
|
47849
47847
|
* {
|
|
47850
|
-
*
|
|
47851
|
-
*
|
|
47852
|
-
*
|
|
47853
|
-
*
|
|
47854
|
-
*
|
|
47855
|
-
*
|
|
47856
|
-
*
|
|
47857
|
-
*
|
|
47858
|
-
*
|
|
47859
|
-
*
|
|
47860
|
-
*
|
|
47861
|
-
*
|
|
47862
|
-
*
|
|
47863
|
-
*
|
|
47864
|
-
*
|
|
47865
|
-
*
|
|
47866
|
-
*
|
|
47867
|
-
*
|
|
47868
|
-
*
|
|
47869
|
-
*
|
|
47870
|
-
*
|
|
47871
|
-
*
|
|
47872
|
-
*
|
|
47873
|
-
*
|
|
47874
|
-
*
|
|
47875
|
-
*
|
|
47876
|
-
*
|
|
47877
|
-
*
|
|
47878
|
-
*
|
|
47879
|
-
*
|
|
47880
|
-
*
|
|
47881
|
-
*
|
|
47882
|
-
*
|
|
47883
|
-
*
|
|
47884
|
-
*
|
|
47885
|
-
*
|
|
47886
|
-
*
|
|
47887
|
-
*
|
|
47888
|
-
*
|
|
47889
|
-
*
|
|
47890
|
-
*
|
|
47891
|
-
*
|
|
47892
|
-
*
|
|
47893
|
-
*
|
|
47894
|
-
*
|
|
47895
|
-
*
|
|
47896
|
-
*
|
|
47897
|
-
*
|
|
47898
|
-
*
|
|
47899
|
-
*
|
|
47900
|
-
*
|
|
47901
|
-
*
|
|
47902
|
-
*
|
|
47903
|
-
*
|
|
47904
|
-
*
|
|
47905
|
-
*
|
|
47906
|
-
*
|
|
47907
|
-
*
|
|
47908
|
-
*
|
|
47909
|
-
*
|
|
47910
|
-
*
|
|
47911
|
-
*
|
|
47912
|
-
*
|
|
47913
|
-
*
|
|
47914
|
-
*
|
|
47915
|
-
*
|
|
47916
|
-
*
|
|
47917
|
-
*
|
|
47918
|
-
*
|
|
47919
|
-
*
|
|
47920
|
-
*
|
|
47921
|
-
*
|
|
47922
|
-
*
|
|
47923
|
-
*
|
|
47924
|
-
*
|
|
47925
|
-
*
|
|
47926
|
-
*
|
|
47927
|
-
*
|
|
47928
|
-
*
|
|
47929
|
-
*
|
|
47930
|
-
*
|
|
47931
|
-
*
|
|
47932
|
-
*
|
|
47933
|
-
* _0xD36BCE94 = 83,
|
|
47934
|
-
* _0xFB11F690 = 84,
|
|
47935
|
-
* _0xD208A9AD = 85,
|
|
47936
|
-
* BF_AllowDogFighting = 86,
|
|
47937
|
-
* _0x07A6E531 = 87,
|
|
47938
|
-
* _0x34F9317B = 88,
|
|
47939
|
-
* _0x4240F5A9 = 89,
|
|
47940
|
-
* _0xEE129DBD = 90,
|
|
47941
|
-
* _0x053AEAD9 = 91,
|
|
47848
|
+
* CA_INVALID = -1,
|
|
47849
|
+
* CA_USE_COVER = 0, // AI will only use cover if this is set
|
|
47850
|
+
* CA_USE_VEHICLE = 1, // AI will only use vehicles if this is set
|
|
47851
|
+
* CA_DO_DRIVEBYS = 2, // AI will only driveby from a vehicle if this is set
|
|
47852
|
+
* CA_LEAVE_VEHICLES = 3, // Will be forced to stay in a ny vehicel if this isn't set
|
|
47853
|
+
* CA_CAN_USE_DYNAMIC_STRAFE_DECISIONS = 4, // This ped can make decisions on whether to strafe or not based on distance to destination, recent bullet events, etc.
|
|
47854
|
+
* CA_ALWAYS_FIGHT = 5, // Ped will always fight upon getting threat response task
|
|
47855
|
+
* CA_FLEE_WHILST_IN_VEHICLE = 6, // If in combat and in a vehicle, the ped will flee rather than attacking
|
|
47856
|
+
* CA_JUST_FOLLOW_VEHICLE = 7, // If in combat and chasing in a vehicle, the ped will keep a distance behind rather than ramming
|
|
47857
|
+
* CA_PLAY_REACTION_ANIMS = 8, // Deprecated
|
|
47858
|
+
* CA_WILL_SCAN_FOR_DEAD_PEDS = 9, // Peds will scan for and react to dead peds found
|
|
47859
|
+
* CA_IS_A_GUARD = 10, // Deprecated
|
|
47860
|
+
* CA_JUST_SEEK_COVER = 11, // The ped will seek cover only
|
|
47861
|
+
* CA_BLIND_FIRE_IN_COVER = 12, // Ped will only blind fire when in cover
|
|
47862
|
+
* CA_AGGRESSIVE = 13, // Ped may advance
|
|
47863
|
+
* CA_CAN_INVESTIGATE = 14, // Ped can investigate events such as distant gunfire, footsteps, explosions etc
|
|
47864
|
+
* CA_CAN_USE_RADIO = 15, // Ped can use a radio to call for backup (happens after a reaction)
|
|
47865
|
+
* CA_CAN_CAPTURE_ENEMY_PEDS = 16, // Deprecated
|
|
47866
|
+
* CA_ALWAYS_FLEE = 17, // Ped will always flee upon getting threat response task
|
|
47867
|
+
* CA_CAN_TAUNT_IN_VEHICLE = 20, // Ped can do unarmed taunts in vehicle
|
|
47868
|
+
* CA_CAN_CHASE_TARGET_ON_FOOT = 21, // Ped will be able to chase their targets if both are on foot and the target is running away
|
|
47869
|
+
* CA_WILL_DRAG_INJURED_PEDS_TO_SAFETY = 22, // Ped can drag injured peds to safety
|
|
47870
|
+
* CA_REQUIRES_LOS_TO_SHOOT = 23, // Ped will require LOS to the target it is aiming at before shooting
|
|
47871
|
+
* CA_USE_PROXIMITY_FIRING_RATE = 24, // Ped is allowed to use proximity based fire rate (increasing fire rate at closer distances)
|
|
47872
|
+
* CA_DISABLE_SECONDARY_TARGET = 25, // Normally peds can switch briefly to a secondary target in combat, setting this will prevent that
|
|
47873
|
+
* CA_DISABLE_ENTRY_REACTIONS = 26, // This will disable the flinching combat entry reactions for peds, instead only playing the turn and aim anims
|
|
47874
|
+
* CA_PERFECT_ACCURACY = 27, // Force ped to be 100% accurate in all situations (added by Jay Reinebold)
|
|
47875
|
+
* CA_CAN_USE_FRUSTRATED_ADVANCE = 28, // If we don't have cover and can't see our target it's possible we will advance, even if the target is in cover
|
|
47876
|
+
* CA_MOVE_TO_LOCATION_BEFORE_COVER_SEARCH = 29, // This will have the ped move to defensive areas and within attack windows before performing the cover search
|
|
47877
|
+
* CA_CAN_SHOOT_WITHOUT_LOS = 30, // Allow shooting of our weapon even if we don't have LOS (this isn't X-ray vision as it only affects weapon firing)
|
|
47878
|
+
* CA_MAINTAIN_MIN_DISTANCE_TO_TARGET = 31, // Ped will try to maintain a min distance to the target, even if using defensive areas (currently only for cover finding + usage)
|
|
47879
|
+
* CA_CAN_USE_PEEKING_VARIATIONS = 34, // Allows ped to use steamed variations of peeking anims
|
|
47880
|
+
* CA_DISABLE_PINNED_DOWN = 35, // Disables pinned down behaviors
|
|
47881
|
+
* CA_DISABLE_PIN_DOWN_OTHERS = 36, // Disables pinning down others
|
|
47882
|
+
* CA_OPEN_COMBAT_WHEN_DEFENSIVE_AREA_IS_REACHED = 37, // When defensive area is reached the area is cleared and the ped is set to use defensive combat movement
|
|
47883
|
+
* CA_DISABLE_BULLET_REACTIONS = 38, // Disables bullet reactions
|
|
47884
|
+
* CA_CAN_BUST = 39, // Allows ped to bust the player
|
|
47885
|
+
* CA_IGNORED_BY_OTHER_PEDS_WHEN_WANTED = 40, // This ped is ignored by other peds when wanted
|
|
47886
|
+
* CA_CAN_COMMANDEER_VEHICLES = 41, // Ped is allowed to "jack" vehicles when needing to chase a target in combat
|
|
47887
|
+
* CA_CAN_FLANK = 42, // Ped is allowed to flank
|
|
47888
|
+
* CA_SWITCH_TO_ADVANCE_IF_CANT_FIND_COVER = 43, // Ped will switch to advance if they can't find cover
|
|
47889
|
+
* CA_SWITCH_TO_DEFENSIVE_IF_IN_COVER = 44, // Ped will switch to defensive if they are in cover
|
|
47890
|
+
* CA_CLEAR_PRIMARY_DEFENSIVE_AREA_WHEN_REACHED = 45, // Ped will clear their primary defensive area when it is reached
|
|
47891
|
+
* CA_CAN_FIGHT_ARMED_PEDS_WHEN_NOT_ARMED = 46, // Ped is allowed to fight armed peds when not armed
|
|
47892
|
+
* CA_ENABLE_TACTICAL_POINTS_WHEN_DEFENSIVE = 47, // Ped is not allowed to use tactical points if set to use defensive movement (will only use cover)
|
|
47893
|
+
* CA_DISABLE_COVER_ARC_ADJUSTMENTS = 48, // Ped cannot adjust cover arcs when testing cover safety (atm done on corner cover points when ped usingdefensive area + no LOS)
|
|
47894
|
+
* CA_USE_ENEMY_ACCURACY_SCALING = 49, // Ped may use reduced accuracy with large number of enemies attacking the same local player target
|
|
47895
|
+
* CA_CAN_CHARGE = 50, // Ped is allowed to charge the enemy position
|
|
47896
|
+
* CA_REMOVE_AREA_SET_WILL_ADVANCE_WHEN_DEFENSIVE_AREA_REACHED = 51, // When defensive area is reached the area is cleared and the ped is set to use will advance movement
|
|
47897
|
+
* CA_USE_VEHICLE_ATTACK = 52, // Use the vehicle attack mission during combat (only works on driver)
|
|
47898
|
+
* CA_USE_VEHICLE_ATTACK_IF_VEHICLE_HAS_MOUNTED_GUNS = 53, // Use the vehicle attack mission during combat if the vehicle has mounted guns (only works on driver)
|
|
47899
|
+
* CA_ALWAYS_EQUIP_BEST_WEAPON = 54, // Always equip best weapon in combat
|
|
47900
|
+
* CA_CAN_SEE_UNDERWATER_PEDS = 55, // Ignores in water at depth visibility check
|
|
47901
|
+
* CA_DISABLE_AIM_AT_AI_TARGETS_IN_HELIS = 56, // Will prevent this ped from aiming at any AI targets that are in helicopters
|
|
47902
|
+
* CA_DISABLE_SEEK_DUE_TO_LINE_OF_SIGHT = 57, // Disables peds seeking due to no clear line of sight
|
|
47903
|
+
* CA_DISABLE_FLEE_FROM_COMBAT = 58, // To be used when releasing missions peds if we don't want them fleeing from combat (mission peds already prevent flee)
|
|
47904
|
+
* CA_DISABLE_TARGET_CHANGES_DURING_VEHICLE_PURSUIT = 59, // Disables target changes during vehicle pursuit
|
|
47905
|
+
* CA_CAN_THROW_SMOKE_GRENADE = 60, // Ped may throw a smoke grenade at player loitering in combat
|
|
47906
|
+
* CA_CLEAR_AREA_SET_DEFENSIVE_IF_DEFENSIVE_CANNOT_BE_REACHED = 62, // Will clear a set defensive area if that area cannot be reached
|
|
47907
|
+
* CA_DISABLE_BLOCK_FROM_PURSUE_DURING_VEHICLE_CHASE = 64, // Disable block from pursue during vehicle chases
|
|
47908
|
+
* CA_DISABLE_SPIN_OUT_DURING_VEHICLE_CHASE = 65, // Disable spin out during vehicle chases
|
|
47909
|
+
* CA_DISABLE_CRUISE_IN_FRONT_DURING_BLOCK_DURING_VEHICLE_CHASE = 66, // Disable cruise in front during block during vehicle chases
|
|
47910
|
+
* CA_CAN_IGNORE_BLOCKED_LOS_WEIGHTING = 67, // Makes it more likely that the ped will continue targeting a target with blocked los for a few seconds
|
|
47911
|
+
* CA_DISABLE_REACT_TO_BUDDY_SHOT = 68, // Disables the react to buddy shot behaviour.
|
|
47912
|
+
* CA_PREFER_NAVMESH_DURING_VEHICLE_CHASE = 69, // Prefer pathing using navmesh over road nodes
|
|
47913
|
+
* CA_ALLOWED_TO_AVOID_OFFROAD_DURING_VEHICLE_CHASE = 70, // Ignore road edges when avoiding
|
|
47914
|
+
* CA_PERMIT_CHARGE_BEYOND_DEFENSIVE_AREA = 71, // Permits ped to charge a target outside the assigned defensive area.
|
|
47915
|
+
* CA_USE_ROCKETS_AGAINST_VEHICLES_ONLY = 72, // This ped will switch to an RPG if target is in a vehicle, otherwise will use alternate weapon.
|
|
47916
|
+
* CA_DISABLE_TACTICAL_POINTS_WITHOUT_CLEAR_LOS = 73, // Disables peds moving to a tactical point without clear los
|
|
47917
|
+
* CA_DISABLE_PULL_ALONGSIDE_DURING_VEHICLE_CHASE = 74, // Disables pull alongside during vehicle chase
|
|
47918
|
+
* CA_DISABLE_ALL_RANDOMS_FLEE = 78, // If set on a ped, they will not flee when all random peds flee is set to TRUE (they are still able to flee due to other reasons)
|
|
47919
|
+
* CA_WILL_GENERATE_DEAD_PED_SEEN_SCRIPT_EVENTS = 79, // This ped will send out a script DeadPedSeenEvent when they see a dead ped
|
|
47920
|
+
* CA_USE_MAX_SENSE_RANGE_WHEN_RECEIVING_EVENTS = 80, // This will use the receiving peds sense range rather than the range supplied to the communicate event
|
|
47921
|
+
* CA_RESTRICT_IN_VEHICLE_AIMING_TO_CURRENT_SIDE = 81, // When aiming from a vehicle the ped will only aim at targets on his side of the vehicle
|
|
47922
|
+
* CA_USE_DEFAULT_BLOCKED_LOS_POSITION_AND_DIRECTION = 82, // LOS to the target is blocked we return to our default position and direction until we have LOS (no aiming)
|
|
47923
|
+
* CA_REQUIRES_LOS_TO_AIM = 83, // LOS to the target is blocked we return to our default position and direction until we have LOS (no aiming)
|
|
47924
|
+
* CA_CAN_CRUISE_AND_BLOCK_IN_VEHICLE = 84, // Allow vehicles spawned infront of target facing away to enter cruise and wait to block approaching target
|
|
47925
|
+
* CA_PREFER_AIR_COMBAT_WHEN_IN_AIRCRAFT = 85, // Peds flying aircraft will prefer to target other aircraft over entities on the ground
|
|
47926
|
+
* CA_ALLOW_DOG_FIGHTING = 86, //Allow peds flying aircraft to use dog fighting behaviours
|
|
47927
|
+
* CA_PREFER_NON_AIRCRAFT_TARGETS = 87, // This will make the weight of targets who aircraft vehicles be reduced greatly compared to targets on foot or in ground based vehicles
|
|
47928
|
+
* CA_PREFER_KNOWN_TARGETS_WHEN_COMBAT_CLOSEST_TARGET = 88, //When peds are tasked to go to combat, they keep searching for a known target for a while before forcing an unknown one
|
|
47929
|
+
* CA_FORCE_CHECK_ATTACK_ANGLE_FOR_MOUNTED_GUNS = 89, // Only allow mounted weapons to fire if within the correct attack angle (default 25-degree cone). On a flag in order to keep exiting behaviour and only fix in specific cases.
|
|
47930
|
+
* CA_BLOCK_FIRE_FOR_VEHICLE_PASSENGER_MOUNTED_GUNS = 90 // Blocks the firing state for passenger-controlled mounted weapons. Existing flags CA_USE_VEHICLE_ATTACK and CA_USE_VEHICLE_ATTACK_IF_VEHICLE_HAS_MOUNTED_GUNS only work for drivers.
|
|
47942
47931
|
* };
|
|
47943
47932
|
* ```
|
|
47944
|
-
* The source for this enum is [here](https://alexguirre.github.io/rage-parser-dumps/dump.html?game=gta5\&build=2944#\_0x0E8E7201).
|
|
47945
47933
|
* @param ped The ped to set attributes to.
|
|
47946
|
-
* @param attributeIndex The attribute index to set.
|
|
47934
|
+
* @param attributeIndex The attribute index to set. See `eCombatAttribute` enum.
|
|
47947
47935
|
* @param enabled A boolean to enable/disable the attribute (true/false).
|
|
47948
47936
|
*/
|
|
47949
47937
|
declare function SetPedCombatAttributes(ped: number, attributeIndex: number, enabled: boolean): void;
|