This is a compatibility resource that enables NPWD to function properly with QBCore. Please ensure that you have the latest version of NPWD and QBCore installed
- Download this repository and place it in the
resourcesdirectory - Run the
patch.sqlto patch the database for NPWD - Add
ensure qb-npwdto yourserver.cfg(Start this resource afterQBCoreand beforeNPWDhave been started)
If you wish to require a player to have a phone item in there inventory, you must follow the steps below.
- Navigate to the
config.jsoninNPWDand change the following settings underPhoneAsItem: a.enabledtotrueb.exportResourcetoqb-npwdc.exportFunctiontoHasPhone - Navigate to the
config.luainqb-npwdand verify all the items you want to work as a phone are listed.
- Double clicking any phone items in the inventory will open the phone. If you want to be able to drag and drop phone items over the Use button in the inventory, you must navigate to
qb-core/shared/items.lua, find your phone item, and changeusabletotrueandshouldClosetotrue.