Jump to content

Recommended Posts

Posted

I created a file index.js in client_side/wtp/

At this file i wrote this: 

mp.events.add("playerCreateWaypoint", (position) => {
    mp.events.callRemote("wtp", "test");
});

 

Next i create file index.js in client_side and wrote at it this:

require('./wtp');

 

Created file wtp.js in packages/modefolder/ and wrote at it this:

mp.events.add("wtp", (text) => {
    console.log(text);
});

And wrote in index.js (packages/modefolder) this one:

require('./wtp.js');

 

 

When I create a waypoint on the map, nothing is output to the console on the server. Why?

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...