Hi, I am stuck at this script. I want the script work like this: when ped falls on the ground it automatically kills the ped when he touches the ground
function isPedOnGround ()
local ped = getLocalPlayer()
local x,y,z = getElementPosition( ped )
if isPedOnGround ( sourcePlayer ) then
setElementHealth(ped, 0)
end
addEventHandler("onClientPreRender", root, isPedOnGround)
Can anyone tell me what's wrong with it?
Salut, sunt nou la scripting si as vrea sa stiu daca se poate face un script in care sa-ti detecteze markerele de pe harta ta (asta fiind pe editor) si dupa sa fie aparute pe radar, si de asemenea sa imi apara ca mesaj "You've 10 markers" ---- de exemplu. Va multumesc de ajutor!