Im trying to disable smg shooting in a vehicle as driver and passenger, idk if someone can help me:
Util.Tick(function()
--shoot smg tinchis
local weapon = 736523883
local ped=GetPlayerPed(-1)
if IsPedInAnyVehicle(ped,true) then
if GetCurrentPedWeapon(ped, weapon, false) then
haveWeapon = true
if haveWeapon then
local canshoot=false
wait(100000)
end
end
end