# Client

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

{% content-ref url="../interactoptions" %}
[interactoptions](https://fivecore.gitbook.io/home/resources/interact/interactoptions)
{% endcontent-ref %}

***

## addEntity

Creates an interaction with the specified entity

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

* entity: `number`
* interactOptions: [`table`](https://fivecore.gitbook.io/home/resources/interact/interactoptions)

## 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`](https://fivecore.gitbook.io/home/resources/interact/interactoptions)

## 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`](https://fivecore.gitbook.io/home/resources/interact/interactoptions)

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