Fixed
This commit is contained in:
parent
05367f4c88
commit
6e2ccd9a9c
@ -1,12 +1,12 @@
|
||||
CreateThread(function()
|
||||
local ped = PlayerPedId()
|
||||
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(PlayerId(), true)
|
||||
DisablePlayerFiring(ped, true)
|
||||
Wait(0)
|
||||
end
|
||||
end
|
||||
Wait(0)
|
||||
end
|
||||
end)
|
||||
end)
|
@ -1,3 +1,5 @@
|
||||
Config = {}
|
||||
|
||||
Config.WeaponList = {
|
||||
[`weapon_hkump`] = true,
|
||||
[`weapon_smg`] = true,
|
||||
}
|
@ -14,6 +14,7 @@ client_scripts {
|
||||
escrow_ignore {
|
||||
"config.lua",
|
||||
"README.md",
|
||||
'client/*.lua',
|
||||
}
|
||||
|
||||
lua54 'yes'
|
||||
|
Loading…
Reference in New Issue
Block a user