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
resources
directory - Run the
patch.sql
to patch the database for NPWD - Add
ensure qb-npwd
to yourserver.cfg
(Start this resource afterQBCore
and beforeNPWD
have 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.json
inNPWD
and change the following settings underPhoneAsItem
: a.enabled
totrue
b.exportResource
toqb-npwd
c.exportFunction
toHasPhone
- Navigate to the
config.lua
inqb-npwd
and 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 changeusable
totrue
andshouldClose
totrue
.