# COMPANION::_GET_COMPANION_ACTIVITY

- **Hash:** `0xB7E0590C86E1711F`
- **Namespace:** COMPANION
- **Runtime name (Lua/JS):** `GetCompanionActivity`
- **Side:** client (game native)
- **Name status:** community guess (may change)
- **Documentation:** described
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/COMPANION/_GET_COMPANION_ACTIVITY

## Signature

```c
Hash _GET_COMPANION_ACTIVITY(int groupId);
```

## Parameters

- `groupId` (`int`)

## Returns

`Hash`

## Description

enum _0x18F77396

## Usage

### Lua

```lua
local retval = GetCompanionActivity(groupId)

-- always available, by hash
local retval = Citizen.InvokeNative(0xB7E0590C86E1711F, groupId, Citizen.ResultAsInteger())
```

### JavaScript

```js
const retval = GetCompanionActivity(groupId);

// by hash
const retval = Citizen.invokeNative('0xB7E0590C86E1711F', groupId, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
```

### C#

```csharp
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

- [COMPANION::_SET_COMPANION_ACTIVITY](https://natives.borderlinerp.com/natives/COMPANION/_SET_COMPANION_ACTIVITY.md)

*Sources: alloc8or RDR3 NativeDB.*
