HankSteiner Posted June 6, 2019 Posted June 6, 2019 (edited) ok simple, what am i doing wrong? Yes I am new to JS: Serverside: mp.events.add('testEvent',(para1,para2,para3) => { console.log('para1:'+para1); console.log('para2:'+para2); console.log('para3:'+para3); }); Clientside: mp.events.callRemote('testEvent',1,2,3); Console: para1:[object Object] para2:1 para3:2 thanks for help! Hank edit: discovered https://wiki.rage.mp/index.php?title=Getting_Started_with_Events Edited June 6, 2019 by HankSteiner idk
MrPancakers Posted June 7, 2019 Posted June 7, 2019 Yeah as you saw if you register it serverside and call it clientside, the first parameter is always a player object, and then it's the arguments that you pass. Glad you worked it out. 1
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