Shortcut buttons
Block use of weapons from ox_inventory
If you use ox_inventory and want to block the use of weapons from slots, numbers 1 to 5 follow the tutorial below
Open the
client.lua
file from ox_inventory.Find the following line:
local function useSlot(slot, noAnim)
And below the line:
if not item then return end
You put this code:
if LocalPlayer.state.inRoyale then return end

And that's it, restart the server and the player will no longer be able to use the shortcut buttons when playing battle royale.
Atualizado