Creating es_extended item inside server-side script


#1

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:


#2

Why not, add it directly to the sql?


#3

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


#4

Anyone can help me with this ?