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