The Lab
COMPANION native

_GET_COMPANION_ACTIVITY

returns Hash1 parambuild 1207

Returns the hash of the activity currently assigned to the companion group groupId.

Signature

C
Hash _GET_COMPANION_ACTIVITY(int groupId); // 0xB7E0590C86E1711F b1207

Parameters

#NameType
1groupIdint

Facts

Facts about _GET_COMPANION_ACTIVITY
Name
_GET_COMPANION_ACTIVITY
Hash
0xB7E0590C86E1711F
Namespace
Returns
Hash
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local hash = Citizen.InvokeNative(0xB7E0590C86E1711F, -- _GET_COMPANION_ACTIVITY
  0, -- int groupId
  Citizen.ResultAsInteger()
)
print(hash)
JavaScript
const hash = Citizen.invokeNative("0xB7E0590C86E1711F", // _GET_COMPANION_ACTIVITY
  0, // int groupId
  Citizen.resultAsInteger()
);
console.log(hash)
C#
int hash = Function.Call<int>((Hash)0xB7E0590C86E1711F, // _GET_COMPANION_ACTIVITY
  0 // int groupId
);
All COMPANION natives

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