Custom inventory
This guide requires coding experience. We will not assist you in adding custom inventories.
Replace CustomInventory
with the name of your inventory
Add to Config.lua
Create files
Create CustomInventory.lua
file in gksphone/server/inventory
and gksphone/client/inventory
folders
When the phone item is deleted, the "
gksphone:client:ItemRemoved
" trigger must be fired. ( If your inventory does not support this feature, check other inventory files. )It should work when the "
UsePhoneItem
" export phone element is used— If there is no export support in the inventory, you can run it using server-side framework structures. ( Use
RegisterUsableItem
in ESX andCreateUseableItem
in Qb-core )
Last updated