
💻Installation
Dependencies :
ES EXTENDED
You will need the latest version of es_extended.
Extract the contents of the archive to your resources folder.
Start the resource near the top of your resources in your server.cfg.
OXLIB
You will need the latest version of ox_lib
Extract the contents of the archive to your resources folder.
Start the resource near the top of your resources in your server.cfg.
Inventories :
QB INVENTORY
Add the items below to the qb-core/shared/items.lua:
whiteboard = { name = 'whiteboard', label = 'White Board', weight = 100, type = 'item', image = 'whiteboard.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = '' },
QS INVENTORY
Add the items below into your qs-inventory/shared/items.lua
['whiteboard'] = {
['name'] = 'whiteboard',
['label'] = 'White Board',
['weight'] = 100,
['type'] = 'item',
['image'] = 'whiteboard.png',
['unique'] = true,
['useable'] = true,
['shouldClose'] = true,
['combinable'] = nil,
['description'] = ''
},
Add this into qs-inventory/server/custom/misc/CreateUseableItem.lua
CreateUsableItem('whiteboard', function(source, item)
local src = source
TriggerClientEvent('zat-whiteboard:client:PreviewProp', src, 'whiteboard')
end)
OX INVENTORY
Add the items below into your ox-inventory/data/items.lua
["whiteboard"] = {
label = "White Board",
weight = 100,
stack = false,
close = true,
description = "",
client = {
image = "whiteboard.png",
}
},
Add this into ox_inventory/modules/items/client.lua
Item('whiteboard', function(data, slot)
ox_inventory:useItem(data, function(data)
if data then
TriggerEvent('zat-whiteboard:client:PreviewProp', 'whiteboard')
end
end)
end)
ENSURE RESOURCES
Last updated