ngd-singleshot/client/client.lua

12 lines
376 B
Lua
Raw Normal View History

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