BabySmurf Posted May 2, 2020 Posted May 2, 2020 (edited) Hello everybody. Today I encountered such a problem, put the client on the VUE JS and I get an error when compiling the front in console: error 'mp' is not defined no-undef How can I connect the Rage API to my Vue JS application? Thanks. Edited May 2, 2020 by BabySmurf
Nutter Posted October 9, 2020 Posted October 9, 2020 Check if window.mp is defined before calling the functions that's part of it. if(window.mp) mp.trigger('event') Another approach, if window.mp is undefined, create global variable called mp and assign it dummy functions.
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