Jump to content

Recommended Posts

Posted

Hello! I have a problem. I saw some people report it on Discord, but nobody seems to be willing to fix it or at least answer when reported there. 

I have tested this two things myself: 

mp.events.addCommand('coords', (player=>
{
    player.call('drawText2', ['TEST'02550]);
});
mp.events.addCommand('coords2', (player=>
{
    mp.players.callInDimension(player.dimension'drawText2', ['TEST2'02550]);
});

The first one ('coords') works correctly, but the second one does nothing, callInDimension is broken with strings. When can we expect it to be fixed? I do not think it is a very hard-to-fix issue, because everything worked well before. It is very hard to develop the server without callInDimension, my gamemode needs it too much.

Posted

If it has been reported it will be fixed sooner or later.

I personally do not think it's a major issue since you can workaround the issue by calling the event for players in a dimension individually by filtering player objects from the player pool. For more information you can read https://wiki.rage.mp/index.php?title=Players::call.

But if you are really lazy I guess you could override the callInDimension function and make it work yourself until a new server build is created.

 

Posted
2 minutes ago, Nutter said:

If it has been reported it will be fixed sooner or later.

I personally do not think it's a major issue since you can workaround the issue by calling the event for players in a dimension individually by filtering player objects from the player pool. For more information you can read https://wiki.rage.mp/index.php?title=Players::call.

But if you are really lazy I guess you could override the callInDimension function and make it work yourself until a new server build is created.

 

I have tested that, but basic `call` seems to work a lot slower and in one moment causes the game to crash if I change callInDimension to loop of all players.

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