Werp Posted November 9, 2020 Posted November 9, 2020 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?
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