if not Config.HelpText then return end if not lib then error("ox_lib was not included or did not load before this file! Please make sure to add '@ox_lib/init.lua' before shared/bridge.lua inside the fxmanifest!") end local function onWeaponEquipped(weaponHash) TriggerEvent('slashtires:slashWeaponEquipped', Config.AllowedWeapons[weaponHash] ~= nil) end AddEventHandler('ox_inventory:currentWeapon', function(weapon) local hash = weapon?.hash or `weapon_unarmed` onWeaponEquipped(hash) end) -- For debugging SetTimeout(0, function() if cache.weapon then onWeaponEquipped(cache.weapon) end end)