[Help] unlimited ammo script no menu


#1

anyone know if they can make a code line for unlimited ammo
i want to do it for the fire script for the fire extinguisher


#2

SetPedInfiniteAmmo(ped, toggle, weaponHash) You mean like that?


#3

that is great any way just to make it for a fire extinguisher.


#4
local ped = GetPlayerPed(-1)
SetPedInfiniteAmmo(ped, true, "WEAPON_FIREEXTINGUISHER")

I believe


#5

i try it out thanks my guys are going to love to be able to get the firefighting training
now


#6

how can i trigger it


#7

worked it out thanks so much here it is for anyone else SetPedInfiniteAmmo(GetPlayerPed(-1), true, GetHashKey(“WEAPON_FIREEXTINGUISHER”))


#8

change GetPlayerPed(-1) to PlayerPedId() Its the same but smaller :wink: and please use code formatting


#9

sorry but where do i have to put it ?