This commit is contained in:
delucecc 2023-02-25 21:13:30 -08:00
commit 09c8dc53f2
3 changed files with 34 additions and 0 deletions

12
client/client.lua Normal file
View File

@ -0,0 +1,12 @@
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)

3
config.lua Normal file
View File

@ -0,0 +1,3 @@
Config.WeaponList = {
[`weapon_hkump`] = true,
}

19
fxmanifest.lua Normal file
View File

@ -0,0 +1,19 @@
Description 'Vehicle Showcase Script | Nemesis Gaming Development'
author 'deluce#9077'
fx_version 'cerulean'
game 'gta5'
shared_scripts {
"config.lua",
}
client_scripts {
'client/*.lua',
}
escrow_ignore {
"config.lua",
"README.md",
}
lua54 'yes'