Debugscript message: Bad argument @ 'addEventHandler' [Expected element at argument 2,got function]
What does "got function" mean?
I tried to change getRootElement() with root, but I've got the same error.
function speedmeter ()
outputChatBox("test", source)
end
addEventHandler("onPlayerVehicleEnter", getRootElement(), speedmeter)