Installation
Last updated
Last updated
You will need the latest version of
Extract the contents of the archive to your resources folder.
Start the resource near the top of your resources in your server.cfg.
You will need the latest version of
Extract the contents of the archive to your resources folder.
Start the resource near the top of your resources in your server.cfg.
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 = '' },
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)
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)