Snowball no dammage

snow

#1

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

#2

That looks more like a magical healing snowball to me


#3

This thread just gave me a really stupid idea.

Minigun firing snowballs.


#4

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


#5

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