Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
cURL
curl --request POST \ --url http://localhost:3917/script/load \ --header 'Content-Type: application/json' \ --data ' { "entity_id": 1, "path": "<string>" } '
{ "ok": true, "message": "<string>" }
attach a Lua script to an entity
Request body for POST /script/load.
POST /script/load
Entity ID to attach the script to.
x >= 0
Path to the .lua script file.
.lua
Script loaded and attached to the entity (or an error message).