Basic script to give u unlimited ammo for fire Extinguisher, ive seen someone asking how to do it even though its very basic. so i uploaded the one i made. please dont put this down
THIS ISNT CURRENTLY WORKING I DIDNT DO THE PROPER TESTS FOR IT. I WILL GET IT FIXED TODAY HOPEFULLY.
Remove unused functions and tables within the code
Add it into a thread, making sure the ped is spawned and exists before starting the thread
Maybe make it a toggle for people to turn on / off
Could add a config so people can set the âammoâ limit to make it more realistic Eg: On my server, we use 4500 ammo in the fire extinguisher making it more realistic.
Moved due to resource not being fully functional and not ready for #development:releases yet. Original poster was requested to tag me (or flag the post) when it is fully functional and ready for release.
i have absoloutely no clue how to do it⌠i tried many ways it did to give unlimited ammo⌠i just have weapons.meta at my last guess. which idk how. and i wanna know how but noone helps
Untested as I wrote it on my phone but it should work fine.
Citizen.CreateThread(function()
while true do
Wait(1000)
local ply = PlayerPedId()
if GetSelectedPedWeapon(ply) == GetHashKey("WEAPON_FIREEXTINGUISHER") then
SetPedInfiniteAmmo(ply, true, GetHashKey("WEAPON_FIREEXTINGUISHER"))
end
end
end)