lua_eval
Runs Lua snippets on a FiveM test client or server with natives, exports, and events available; returns expression values and captures print output. Requires bakery_ai_eval 1.
Instructions
Run a Lua snippet on the test client or the server (bridge resource context: natives, exports and events are available). Expressions return their value; print output is captured. Needs bakery_ai_eval 1.
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": {
"code": "<code>"
},
"name": "lua_eval"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| side | No | client | |
| player | No | ||
| server | No |