The Lab
COMPANION native

_SET_COMPANION_ACTIVITY

returns void2 paramsbuild 1207

Assigns the activity identified by the activity hash to the companion group groupId. Returns nothing.

Signature

C
void _SET_COMPANION_ACTIVITY(int groupId, Hash activity); // 0x0F1CD8CA9E65D5F6 b1207

Parameters

#NameType
1groupIdint
2activityHash

Facts

Facts about _SET_COMPANION_ACTIVITY
Name
_SET_COMPANION_ACTIVITY
Hash
0x0F1CD8CA9E65D5F6
Namespace
Returns
void
Game build
1207

Examples

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

Lua
Citizen.InvokeNative(0x0F1CD8CA9E65D5F6, -- _SET_COMPANION_ACTIVITY
  0, -- int groupId
  GetHashKey("name") -- Hash activity
)
JavaScript
Citizen.invokeNative("0x0F1CD8CA9E65D5F6", // _SET_COMPANION_ACTIVITY
  0, // int groupId
  GetHashKey("name") // Hash activity
);
C#
Function.Call((Hash)0x0F1CD8CA9E65D5F6, // _SET_COMPANION_ACTIVITY
  0, // int groupId
  (uint)API.GetHashKey("name") // Hash activity
);
All COMPANION natives

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