Passer au contenu principal

Documentation Index

Fetch the complete documentation index at: https://docs.dotouch-emu.com/llms.txt

Use this file to discover all available pages before exploring further.

Convertir un objet Lua en chaîne JSON.

🎮 Méthode

developer:fromObject(object)

📝 Arguments

NomTypeDescription
objectobjectObjet ou table Lua.

💎 Valeur de retour

TypeDescription
stringChaîne formatée en JSON.

💡 Exemple

local item = {name = "Épée", damage = 50}
local json = fromObject(item)
global:printMessage(json)