Estä "juoksuheijarit" ja lonkalta ampuminen By "Masi"

Masi

Ylläpito
Ylläpitäjä
Moderator
Vanhempi jäsen
Wiki
13 Huhtikuu 2019
938
173
43
Lua:
Citizen.CreateThread(function()
    while true do
        Citizen.Wait(0)
        local ped = PlayerPedId()

        if not IsControlPressed(0, 330) or not IsControlPressed(0, 331) then
            DisablePlayerFiring(GetPlayerPed(-1), true)
            DisableControlAction(0, 142, true)
        end

        if IsPedArmed(ped, 6) then
            DisableControlAction(1, 140, true)
            DisableControlAction(1, 141, true)
            DisableControlAction(1, 142, true)
        end
    end
end)