Jump to content

Client Side JS Events not working?


Recommended Posts

Hi there, i've started recently with rage mp, developing on node.

I've run into some problems with client side programming.

This is my example code:


mp.game.ui.setNewWaypoint(-400, 1300);

mp.checkpoints.new(1, new mp.Vector3(-400,1150,325), 8, {color: [ 255,50,50,255], visible: true})

mp.events.add("playerEnterCheckpoint", (checkpoint) => {
    mp.game.fire.startScriptFire(-420, 1180, 325.8, 30, false);
    checkpoint.radius =+ 5;

The waypoint and the checkpoint is visible, but the event doesn't seem to work.

Attempts with other events like playerJoin in combination with simple chat outputs failed too.

I'm not sure if i've missed something or are there problems with client side javascript?

Exist these problems with C# too?

Edited by KraeuterErich
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...