> 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/interactoptions.md).

# InteractOptions

All exports that need InteractOptions can use these data

## InteractOptions

* header: `string`
* actions: `table`
  * text: `string`
  * action: `function`
  * canInteract?: `function`
* range: `number`

Example with **addGlobalObject** export:

```lua
local modelHash = `prop_conc_blocks01b`
exports.fivecore_interact:addGlobalObject(modelHash, {
    header = 'Trash',
    actions = {
        {
            text = 'Option 1',
            action = function()
                print('Option 1 clicked!')
            end
        },
        {
            text = 'Option 2 disabled',
            action = function()
                print('Option 2 clicked!')
            end,
            canInteract = function ()
                return false
            end
        }
    },
    range = 2.0
})
```
