RedM Natives

_GET_COMPANION_ACTIVITY

Hash0xB7E0590C86E1711F
Runtime nameGetCompanionActivity
NamespaceCOMPANION
SideClient
NameCommunity guess
Docs
Since build1207

Signature

Hash _GET_COMPANION_ACTIVITY(int groupId);

Parameters

NameTypeDescription
groupIdint—

Returns Hash

Description

enum _0x18F77396

Usage

Lua
local retval = GetCompanionActivity(groupId)

-- always works, by hash
local retval = Citizen.InvokeNative(0xB7E0590C86E1711F, groupId, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = GetCompanionActivity(groupId);

// by hash
const retval = Citizen.invokeNative('0xB7E0590C86E1711F', groupId, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0xB7E0590C86E1711F, groupId);
  • The name is a community guess and may change. If the named call is missing in your client build, use InvokeNative with the hash — it always works.

See also

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.