17.03.2025, 10:20
Use this:
Code:
scriptid = 23
scriptcode = [[
log('1234')
]]
params = {
data = {
id = scriptid,
scriptonly = true,
},
script = scriptcode
}
webrequest = require('webrequest')
res, err = webrequest('scripting', 'save', params)