# Integration

## ME/DO Integration

To record **me**/**do**, you have to inform the cam framework that player has written a **me** or **do**.

To do so, in your serverside command handler, trigger the following event

```lua
-- for a DO
TriggerEvent('rcore_cam:do', Source, text)

-- for a ME
TriggerEvent('rcore_cam:me', Source, text)

-- Example (do NOT use the following code)
RegisterCommand('do', function(source, args)
    local Source = source
    local text = table.concat(args, " ")
    Send3dTextToMany("DO", 'lsrp_chat:do', Source, text, 'msg_do')
    TriggerEvent('rcore_cam:do', Source, text) -- example of triggering a DO
end, true)
```

## Animation integration

By default, the camera system can't detect if your scripts are playing animations on peds. To do so, you have to put the following line in `fxmanifest.lua` of all resources that use `TaskPlayAnim` and you want such animations to be in recordings (i.e. emotes resource)

```lua
client_script '@rcore_cam/include/anim.lua'
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://documentation.rcore.cz/paid-resources/rcore_cam/integrations.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
