Jump to content

Checkpoint Handles not working


Rimeau

Recommended Posts

Hello,

when working on a new script we noticed that the "playerEnterCheckpoint" event does not contain the handle of the checkpoint.

This code returns "checkpoint is type undefined":

mp.events.add("playerEnterCheckpoint", (player, checkpoint) => {
 mp.gui.chat.push("checkpoint is type " + typeof(checkpoint));
});

Furthermore, mp.checkpoints.new does not seem to return the handle, so there is no good way of tracking which checkpoint a player entered right now.

Since there is no bug report area we are posting in Support.

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