ngd-singleshot/client/client.lua

13 lines
380 B
Lua
Raw Normal View History

2023-02-25 23:13:30 -06:00
CreateThread(function()
local ped = PlayerPedId()
while true do
if IsControlJustPressed(0, 24) and Config.WeaponList[GetSelectedPedWeapon(ped)] then
while IsControlPressed(0, 24) or IsDisabledControlPressed(0, 24) do
DisablePlayerFiring(PlayerId(), true)
Wait(0)
end
end
Wait(0)
end
end)