The menu will keep the gun in your hand whilst unracked until you rack it again in a police vehicle, if you wish to disable this you can head to the client.lua then line 272 and change it to this…
CarbineEquipped = false
ShotgunEquipped = false
Citizen.CreateThread(function()
local Ped = GetPlayerPed(-1)
while true do
Citizen.Wait(0)
local Ped = GetPlayerPed(-1)
local Veh = GetVehiclePedIsIn(Ped)
local CurrentWeapon = GetSelectedPedWeapon(Ped)if CarbineEquipped then if (tostring(CurrentWeapon) ~= '-2084633992') and Veh == nil then Notify('~y~You must put away your Carbine Rifle') end --SetCurrentPedWeapon(Ped, 'weapon_carbinerifle', true) end if ShotgunEquipped then if tostring(CurrentWeapon) ~= '487013001' and Veh == nil then Notify('~y~You must put away your Shotgun') end --SetCurrentPedWeapon(Ped, 'weapon_pumpshotgun', true) end endend)