# Voice Script Adaptation

includes "sv\_template.lua "

### Default answer call trigger (SERVER)

NO CLIENT SCRIPT SUPPORT - You can forward yourself codes - like triggerclientevent

We added example you:

```lua
Templates.VoiceAPP_StartCall = function(source1, source2)
    exports['pma-voice']:setPlayerCall(source1, source2)
    -- You can add more voice scripts
end
```

### Default end call trigger (SERVER)

NO CLIENT SCRIPT SUPPORT - You can forward yourself codes - like triggerclientevent

We added example you:

```lua
Templates.VoiceAPP_EndCall = function(source1, source2)
--     You shcan adapt for your voice script
end
```


---

# 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://docs.0resmon.org/0resmon/s4-resources/illegal-phone/voice-script-adaptation.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.
