_SET_COMPANION_ACTIVITY
Hash
0x0F1CD8CA9E65D5F6Runtime name
SetCompanionActivityNamespaceCOMPANION
SideClient
NameCommunity guess
Docs
Since build1207
Signature
void _SET_COMPANION_ACTIVITY(int groupId, Hash activity);Parameters
| Name | Type | Description |
|---|---|---|
groupId | int | — |
activity | Hash | — |
Returns void
Description
enum _0x18F77396
Usage
SetCompanionActivity(groupId, activity)
-- always works, by hash
Citizen.InvokeNative(0x0F1CD8CA9E65D5F6, groupId, activity)JavaScript and C#
SetCompanionActivity(groupId, activity);
// by hash
Citizen.invokeNative('0x0F1CD8CA9E65D5F6', groupId, activity);Function.Call((Hash)0x0F1CD8CA9E65D5F6, groupId, activity);- Hash parameters: the named function also accepts a string and hashes it for you;
Citizen.InvokeNativeneeds the number — passjoaat("name")or a backtick literal like`name`. - The name is a community guess and may change. If the named call is missing in your client build, use
InvokeNativewith the hash — it always works.
See also
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.