Jump to content

vue js and rage


alexxnder.dev

Recommended Posts

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

Link to comment
Share on other sites

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,

 

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...