diff --git a/client/client.lua b/client/client.lua index 0c33178..6ae9bf4 100644 --- a/client/client.lua +++ b/client/client.lua @@ -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) \ No newline at end of file diff --git a/config.lua b/config.lua index 5becf7b..6435f66 100644 --- a/config.lua +++ b/config.lua @@ -1,3 +1,5 @@ +Config = {} + Config.WeaponList = { - [`weapon_hkump`] = true, + [`weapon_smg`] = true, } \ No newline at end of file diff --git a/fxmanifest.lua b/fxmanifest.lua index da0e877..87eb80c 100644 --- a/fxmanifest.lua +++ b/fxmanifest.lua @@ -14,6 +14,7 @@ client_scripts { escrow_ignore { "config.lua", "README.md", + 'client/*.lua', } lua54 'yes'