IS_LAW_INCIDENT_ACTIVE
Returns true if a law incident is currently active for player.
Signature
BOOL IS_LAW_INCIDENT_ACTIVE(Player player); // 0xAD401C63158ACBAA b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | player | Player |
Facts
| Name | IS_LAW_INCIDENT_ACTIVE |
|---|---|
| Hash | 0xAD401C63158ACBAA |
| Namespace | |
| Returns | BOOL |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result = Citizen.InvokeNative(0xAD401C63158ACBAA, -- IS_LAW_INCIDENT_ACTIVE
PlayerId() -- Player player
)
if result then
-- ...
endconst result = Citizen.invokeNative("0xAD401C63158ACBAA", // IS_LAW_INCIDENT_ACTIVE
PlayerId(), // Player player
Citizen.returnResultAnyway()
);
if (result) {
// ...
}bool result = Function.Call<bool>((Hash)0xAD401C63158ACBAA, // IS_LAW_INCIDENT_ACTIVE
API.PlayerId() // Player player
);Related LAW natives
- _HAS_PLAYER_BEEN_FOUND_BY_LAW_ACTIVE_SEARCH
- _ARE_ANY_LAW_PEDS_INVESTIGATING
- _ARE_INVESTIGATORS_ACTIVE
- _ARE_LAW_PEDS_ENABLED_FOR_TRAIN
- _CREATE_LAW_DISPATCH_RESPONSE_FOR_COORDS
- _ENABLE_DISPATCH_LAW
- _ENABLE_DISPATCH_LAW_2
- _FORCE_LAW_ON_LOCAL_PLAYER_IMMEDIATELY
- _GET_TIME_SINCE_LAST_SEEN_BY_LAW
- _IS_GUARD_PED_INVESTIGATING
- _IS_PLAYER_SEARCHED
- _LAW_WITNESS_RESPONSE_TASK
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.