The Lab
SCRIPT native

_IS_GOAL_CONTEXT_ACTIVE

returns BOOL1 parambuild 1207

Based on its name and signature, here is our best reading:

Appears to return true if the goal context goalContext is active.

Signature

C
BOOL _IS_GOAL_CONTEXT_ACTIVE(Hash goalContext); // 0x7409669C5ED50144 b1207

Parameters

#NameType
1goalContextHash

Facts

Facts about _IS_GOAL_CONTEXT_ACTIVE
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.

Lua
local result = Citizen.InvokeNative(0x7409669C5ED50144, -- _IS_GOAL_CONTEXT_ACTIVE
  GetHashKey("name") -- Hash goalContext
)
if result then
  -- ...
end
JavaScript
const result = Citizen.invokeNative("0x7409669C5ED50144", // _IS_GOAL_CONTEXT_ACTIVE
  GetHashKey("name"), // Hash goalContext
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0x7409669C5ED50144, // _IS_GOAL_CONTEXT_ACTIVE
  (uint)API.GetHashKey("name") // Hash goalContext
);
All SCRIPT natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.