Tonythevato Posted July 29, 2019 Posted July 29, 2019 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)
Tonythevato Posted July 30, 2019 Author Posted July 30, 2019 Server. I tried ro change it to client, but the same error...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now