Creating es_extended item inside server-side script


Hey guys, im looking for way to create es_extended item inside server-side script. I know its possible because few months ago i saw this on other server.
I already tried this but its not working:

table.insert(ESX.Items, {
name = ‘newitem’,
label = ‘itemname’,
limit = 1,
rare = (0 == 1 and true or false),
canRemove = (1 == 1 and true or false),

// Thanks for help :slight_smile:


Why not, add it directly to the sql?


Im making carlock system based on Keys as inventory items. Thats why :wink:


Anyone can help me with this ?