qb-npwd
qb-npwd copied to clipboard
QBCore Compatibility Resource for NPWD
qb-npwd
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
Installation Steps:
- 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)
Enabling PhoneAsItem Support
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.
Other Features
- 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.