22.04.2021, 12:46
Like this:
Code:
require('json')
res, err = db:insert('visobjects', {
floor = 1,
type = 6,
params = json.encode({
size = 72,
color = '#ff9900',
font = '',
bold = 1,
italic = 0,
underline = 1
}),
name = 'label text',
nobg = 1,
locx = 35,
locy = 107,
cls = '',
})