Another RP resource
The following resource is just a little script, that makes you unable to shoot when you are over the limit of 30 km/h. You can change it to mph in the files if you want to. Yeah and thats all.
Version
1.0 Everything works as intended
1.1 Added veh check
Citizen.CreateThread(function()
while true do
Citizen.Wait(0)
local model = GetDisplayNameFromVehicleModel(GetEntityModel(GetVehiclePedIsIn(GetPlayerPed(-1))))
if IsPedInAnyVehicle(GetPlayerPed(-1)) and (model ~= "RIOT2" and model ~= "FIRETRUK" and model ~= "BARRAGE" and model ~= "VALKYRIE") then
DisableControlAction(0,68,true) -- INPUT_AIM
DisableControlAction(0,25,true) -- INPUT_VEH_AIM
DisableControlAction(0,24,true) -- INPUT_ATTACK
DisableControlAction(0,257,true) -- INPUT_ATTACK2
end
if IsPedInAnyVehicle(GetPlayerPed(-1)) then
DisableControlAction(0,99,true)
DisableControlAction(0,100,true)
DisableControlAction(0,115,true)
DisableControlAction(0,116,true)
DisableControlAction(0,117,true)
DisableControlAction(0,118,true)
DisableControlAction(0,261,true)
DisableControlAction(0,262,true)
end
end
end)