Callback
Signature
table onSave(string filepath)Description
Arguments
File Path
Example
Callback
local function onSave()
return {
name2 = {11, 22, 33}, --array
name1 = "value1", --string
name3 = { --table
[1] = "aa",
nn = "bb", --makes it a table rather than an array
[3] = "cc"
}
}
end
event.registerSaveHandler("test", onSave)Output
Notes
Last updated