Skip to content

$createObject

$createObject will create a new object.

Usage

$createObject[objectName;object]

Parameters

FieldTypeDescriptionRequired
objectNamestringThe object name.true
objectobjectJSON object.true

Example(s)

1
client.command({
2
name: "createObject",
3
code: `
4
$getObjectProperty[Object Name;Leref]
5
$createObject[Object Name;{
6
"Leref": "Ferel",
7
"aoi.js": "dbd.js"
8
}]
9
`
10
});