Tonythevato Posted July 29, 2019 Share 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) Link to comment
NONAME_1224 Posted July 29, 2019 Share Posted July 29, 2019 What your script side? Client or Server? Link to comment
Tonythevato Posted July 30, 2019 Author Share Posted July 30, 2019 Server. I tried ro change it to client, but the same error... Link to comment
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