GGTTPO100AJIEX_YT Posted November 20, 2020 Posted November 20, 2020 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', 0, 255, 0]); }); mp.events.addCommand('coords2', (player) => { mp.players.callInDimension(player.dimension, 'drawText2', ['TEST2', 0, 255, 0]); }); 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.
Nutter Posted November 20, 2020 Posted November 20, 2020 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.
GGTTPO100AJIEX_YT Posted November 20, 2020 Author Posted November 20, 2020 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.
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