alexxnder.dev Posted May 11, 2021 Posted May 11, 2021 hello guys i m using vue.js for cefs and when i m trying to call mp.trigger in the vue component doesn t work (error: "'mp' is not defined no-undef") Message #general
MarcoQ Posted May 13, 2021 Posted May 13, 2021 On 5/11/2021 at 9:41 PM, alexxnder.dev said: hello guys i m using vue.js for cefs and when i m trying to call mp.trigger in the vue component doesn t work (error: "'mp' is not defined no-undef") Message #general show us the code
alexxnder.dev Posted May 14, 2021 Author Posted May 14, 2021 6 hours ago, Justiofed said: if u are using eslint at vue cli use /*global mp*/ ty <3
alexxnder.dev Posted May 14, 2021 Author Posted May 14, 2021 (edited) 6 hours ago, Justiofed said: if u are using eslint at vue cli use /*global mp*/ it works but why i need to use global.mp.trigger instead of mp.trigger? Edited May 14, 2021 by alexxnder.dev
MrWilson Posted May 17, 2021 Posted May 17, 2021 We use VueJS. We use RPC calls for example: on the vue startDrivingTest: function () { this.$rpc.callServer("drivingSchool:startDrivingTest") }, Server Side: rpc.register("drivingSchool:startDrivingTest", (_, { player }) => { } Good luck,
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