Hey, a friend and I tried to make a Hunter Alert for race gamemode. Apparently, it works for any other gamemode except for race :\ We tried using different events, including client-side too, but it still doesn't work. No errors in debugscript 3 mode either. Does anyone know what we should do? Here's the lua:
function hunterAlert ( theVehicle, seat )
local id = getElementModel ( theVehicle )
if id == 425 then
outputChatBox ("#ff0000" ..getPlayerName(source).. " got the hunter! Watch out!",getRootElement(),0,0,0,true )
end
end
addEventHandler ( "onPlayerVehicleEnter", getRootElement(), hunterAlert )
Thanks