> For the complete documentation index, see [llms.txt](https://fivecore.gitbook.io/home/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://fivecore.gitbook.io/home/resources/interact/functions/client.md).

# Client

Every export that require interactOptions expect a table with the properties defined here:&#x20;

{% content-ref url="/pages/gbBFIksa71jm7PFeUZ3F" %}
[InteractOptions](/home/resources/interact/interactoptions.md)
{% endcontent-ref %}

***

## addEntity

Creates an interaction with the specified entity

```lua
exports.fivecore_interact:addEntity(entity, interactOptions)
```

* entity: `number`
* interactOptions: [`table`](/home/resources/interact/interactoptions.md)

## removeEntity

Remove interaction with the specified entity=

```lua
exports.fivecore_interact:removeEntity(entity)
```

## addGlobalObject

Creates an interaction with all objects of the specified model hash

```lua
exports.fivecore_interact:addGlobalObject(modelHash, interactOptions)
```

* modelHash: `string`
* interactOptions: [`table`](/home/resources/interact/interactoptions.md)

## removeGlobalObject

Remove global interactions with the specified model hash

```lua
exports.fivecore_interact:removeGlobalObject(modelHash)
```

* modelHash: `string`

## addMaterial

Creates an interaction with the specified collision material hash

```lua
exports.fivecore_interact:addMaterial(materialHash, interactOptions)
```

* materialHash: `number`
* interactOptions: [`table`](/home/resources/interact/interactoptions.md)

## removeMaterial

Remove material interactions with the specified collision material hash

```lua
exports.fivecore_interact:removeMaterial(materialHash)
```

* materialHash: `number`

## disableTargeting

Enable/disable targeting with all registered interactions

```lua
exports.fivecore_interact:disableTargeting(state)
```

* state: `boolean`
