game_input
Hold FiveM game controls for a specified duration to accelerate, steer, interact, or press keys, using named controls or raw GTA control IDs.
Instructions
Hold game controls for a duration (max 4000 ms), e.g. accelerate to drive or interact to press E. Use a named control or a raw GTA control ID; steer uses value -1 (left) to 1 (right).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"controls": "<controls>"
},
"name": "game_input"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| player | No | ||
| server | No | ||
| controls | Yes | ||
| durationMs | No |