[Request] Disable weapon swap when ammo runs out

I’m looking for an already made script that will disable automatic swapping of a weapon when the gun has no ammo to shoot.

Example: DisableControlAction + weapon changing.

If anyone can make this standalone, and it works and it doesn’t remove the ability to change weapons, please reply below.

Hello, take a look at this: SetWeaponsNoAutoswap - FiveM Natives @ Cfx.re Docs

I know what you mean but I dont know how to make a script with that.

You just have to do

Citizen.CreateThread(function()
    SetWeaponsNoAutoswap(true)
end)

in server.cfg?

No in a client side lua file (could be js or C#)

I dont know how to add that, or just make it a script and work. just please send me something I can just download and add to my server resources.

I’d suggest watching a YouTube video on how to do basic FiveM lua client scripts, as people don’t really do work for others

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