Snowball no dammage

what is wrong with my code ? i want that snowballs don’t do any damage. I tried with players on my server, bet still got damage:

Citizen.CreateThread(function()
	while true do
		Citizen.Wait(0)
		snowball()
	end
end)

function snowball()
	if HasPedBeenDamagedByWeapon(GetPlayerPed(-1), GetHashKey("WEAPON_SNOWBALL"), 126349499) then
		SetEntityHealth(GetPlayerPed(-1), 200)
	end
end
1 Like

That looks more like a magical healing snowball to me

This thread just gave me a really stupid idea.

Minigun firing snowballs.

2 Likes

well kind off :’) haha when you see the code, it is like that but when you are ingame noone is aware of it !:rofl:

hooooo if I like that hahaha I can imagine it, good idea: D