Weapon wheel not showing up

Hello, I’m starting to create a paintball game mode. For the weapon system, I’m using local exports.ox_inventory:weaponWheel(state) and GiveWeaponToPed to give temporary weapons to players during a match. But somehow, the weapon wheel is acting strangely: it shows up but appears empty (not even the wheel itself). Occasionally, if I disconnect and reconnect to the server, it works (quitting FiveM doesn’t fix this). I don’t know if there’s any native that could cause this issue.
ESX 1.10.7, ox_inventory 2.43.5

ESX 1.10.7 , ox_lnv 2.43.5

RegisterCommand('wt', function (source, args, raw)
	exports.ox_inventory:weaponWheel(true)
end)
RegisterCommand('wf', function (source, args, raw)
	exports.ox_inventory:weaponWheel(false)
end)

Looks like a sync or ownership issue rather than a bug with weaponWheel itself. If the wheel isn’t even rendering, that’s usually tied to either the ped not having any valid weapons assigned by the time the wheel is toggled, or the client desyncing from the server state.

You’re using GiveWeaponToPed, but it’s not clear whether you’re doing it on the client or server. For ox_inv setups, giving weapons server-side without setting proper ownership or inventory context can lead to exactly this, weapons technically exist, but the client can’t see or switch to them.

Make sure:

  • GiveWeaponToPed is called client-side after sync is confirmed, or the weapon is passed through the inventory properly.
  • You’re not giving weapons during a frame where the player’s ped is still being restored or swapped.
  • No other scripts are overriding the weapon data or wheel state right after assignment.

Also worth testing with a small delay after giving the weapon before calling weaponWheel(true) just to confirm it’s not a timing thing.

i found it
its was cause by **HideHudComponentThisFrame** i was calling this in a loop in my other script.

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