The SetWeaponsNoAutoswap
native does not work.
- Client: Production, build number: 2699: FXServer Version: FXServer-master SERVER v1.0.0.7290 win32
- Expectance: Disable switching weapon to
WEAPON_UNARMED
or other weapons once rifle runs out of ammo. - What actually happens: Literally nothing. Weapon still switches.
- Category of bug:native, weapons(?)
- Reproducible steps:
Create a new resource.
inside the client.lua script add this:
Citizen.CreateThread(function()
while true do
SetPedConfigFlag(ped, 48, true)
SetWeaponsNoAutoswap(true)
Citizen.Wait(0)
end
end)
Get a weapon.
shoot until you run out of ammo.
The weapon is automatically unequipped.
Please help! Idk if this is a bug or an issue in my script.