How to make only players with police job and gang to be able to use weapons.

Hi I’m using ox_inventory and av_gangs, my framework is QBCore and I want only players with police job, or players that have a gang, to be able to use weapons through ox_inventory, when they try it will send them a error message. If someone could help me I would love so. Thanks.

Generally it’s quite simple, you just need to add a job check (from your framework, QBCore has a simple-to-use export for that) to the relevant part of ox_inventory that handles players equipping weapons and either allow to deny the action accordingly.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.