ok ok
The problem is this I'm trying to create a script to grab the helicopter on the screen they found out the hunter but I do not work: (here it is!: S
function someoneReachedHunter(number, sort, model)
if sort == "vehiclechange" and model == 425 then
local getTickNow = getTickCount () - getTickStart
if getTickNow <= 1000 then
alfa = getTickNow/1000
elseif getTickNow >= 4000 then
alfa = (5000-getTickNow)/1000
else
alfa = 1
end
alfa = alfa * alfa * alfa
if mes_ID == 1 then
dxDrawText("Hunter Reached!",-1,sy/3,sx-1,sy,tocolor(0,0,0,alfa*200),(2.5*sx/1920)*alfa*0.2,ffsfont,"center","center",true)
dxDrawText("Hunter Reached!",0,sy/3,sx,sy,tocolor(255,0,0,alfa*255),(2.5*sx/1920)*alfa*0.2,ffsfont,"center","center",true)
elseif mes_ID == 2 then
dxDrawText("Hunters Fight!",-1,sy/3,sx-1,sy,tocolor(0,0,0,alfa*200),(2.5*sx/1920)*alfa*0.2,ffsfont,"center","center",true)
dxDrawText("Hunters Fight!",0,sy/3,sx,sy,tocolor(255,0,0,alfa*255),(2.5*sx/1920)*alfa*0.2,ffsfont,"center","center",true)
addEvent("onHunterEvent",true)
addEventHandler("onHunterEvent",getRootElement(),start_drawing)
end
end
addEvent("onPlayerPickUpRacePickup",true)
addEventHandler("onPlayerPickUpRacePickup",getRootElement(),someoneReachedHunter)
--end
forgive a mistake if I'm bad at this