ngd-singleshot/client/client.lua
2023-10-21 15:18:17 -07:00

12 lines
376 B
Lua

CreateThread(function()
while true do
local ped = PlayerPedId()
if IsControlJustPressed(0, 24) and Config.WeaponList[GetSelectedPedWeapon(ped)] then
while IsControlPressed(0, 24) or IsDisabledControlPressed(0, 24) do
DisablePlayerFiring(ped, true)
Wait(0)
end
end
Wait(0)
end
end)