_GET_AI_PLAYER_DEFENSE_MODIFIER_AGAINST_AI
Returns the defense modifier applied to player against AI damage.
Signature
float _GET_AI_PLAYER_DEFENSE_MODIFIER_AGAINST_AI(Player player); // 0x2E78D822208E740A b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | player | Player |
Facts
| Name | _GET_AI_PLAYER_DEFENSE_MODIFIER_AGAINST_AI |
|---|---|
| Hash | 0x2E78D822208E740A |
| Namespace | |
| Returns | float |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result = Citizen.InvokeNative(0x2E78D822208E740A, -- _GET_AI_PLAYER_DEFENSE_MODIFIER_AGAINST_AI
PlayerId(), -- Player player
Citizen.ResultAsFloat()
)
print(result)const result = Citizen.invokeNative("0x2E78D822208E740A", // _GET_AI_PLAYER_DEFENSE_MODIFIER_AGAINST_AI
PlayerId(), // Player player
Citizen.resultAsFloat()
);
console.log(result)float result = Function.Call<float>((Hash)0x2E78D822208E740A, // _GET_AI_PLAYER_DEFENSE_MODIFIER_AGAINST_AI
API.PlayerId() // Player player
);Related PLAYER natives
- _SET_AI_PLAYER_DEFENSE_MODIFIER_AGAINST_AI
- _SET_PLAYER_DEFENSE_MODIFIER
- _SET_PLAYER_DEFENSE_TYPE_MODIFIER
- SET_PLAYER_WEAPON_DEFENSE_MODIFIER
- _GET_ACTIVE_HORSE_FOR_PLAYER
- _GET_HAS_PLAYER_DISCOVERED_CHARACTER_NAME_SP
- _GET_PLAYER_CACHED_DEAD_EYE_AMOUNT
- _GET_PLAYER_DEAD_EYE
- _GET_PLAYER_DEAD_EYE_METER_LEVEL
- _GET_PLAYER_FREE_AIM_CLOSEST_ENTITY
- _GET_PLAYER_HEALTH
- _GET_PLAYER_HEALTH_RECHARGE_MULTIPLIER
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.