_IS_GOAL_CONTEXT_ACTIVE
Based on its name and signature, here is our best reading:
Appears to return true if the goal context goalContext is active.
Signature
BOOL _IS_GOAL_CONTEXT_ACTIVE(Hash goalContext); // 0x7409669C5ED50144 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | goalContext | Hash |
Facts
| Name | _IS_GOAL_CONTEXT_ACTIVE |
|---|---|
| Hash | 0x7409669C5ED50144 |
| 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(0x7409669C5ED50144, -- _IS_GOAL_CONTEXT_ACTIVE
GetHashKey("name") -- Hash goalContext
)
if result then
-- ...
endconst result = Citizen.invokeNative("0x7409669C5ED50144", // _IS_GOAL_CONTEXT_ACTIVE
GetHashKey("name"), // Hash goalContext
Citizen.returnResultAnyway()
);
if (result) {
// ...
}bool result = Function.Call<bool>((Hash)0x7409669C5ED50144, // _IS_GOAL_CONTEXT_ACTIVE
(uint)API.GetHashKey("name") // Hash goalContext
);Related SCRIPT natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.