_SET_COMPANION_ACTIVITY
Assigns the activity identified by the activity hash to the companion group groupId. Returns nothing.
Signature
void _SET_COMPANION_ACTIVITY(int groupId, Hash activity); // 0x0F1CD8CA9E65D5F6 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | groupId | int |
| 2 | activity | Hash |
Facts
| 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.
Citizen.InvokeNative(0x0F1CD8CA9E65D5F6, -- _SET_COMPANION_ACTIVITY
0, -- int groupId
GetHashKey("name") -- Hash activity
)Citizen.invokeNative("0x0F1CD8CA9E65D5F6", // _SET_COMPANION_ACTIVITY
0, // int groupId
GetHashKey("name") // Hash activity
);Function.Call((Hash)0x0F1CD8CA9E65D5F6, // _SET_COMPANION_ACTIVITY
0, // int groupId
(uint)API.GetHashKey("name") // Hash activity
);Related COMPANION natives
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.