08.02.2019, 14:59
You need to return 1 at the end of the callback otherwise it will not sync it for the other players.
There is a mistake in your code. You are creating a dynamic 3D label in every tick. You do not destroy the previous, you do not update the text and you overwrite the previous.
Do not use OnPlayerUpdate for this, hook SetPlayerWantedLevel and if wanted level goes from 0 to X, then create the label. If it is set back to 0, destroy the label and reset variable. If wanted level changes value above 0, update the text only without re-creating the label.
There is a mistake in your code. You are creating a dynamic 3D label in every tick. You do not destroy the previous, you do not update the text and you overwrite the previous.
Do not use OnPlayerUpdate for this, hook SetPlayerWantedLevel and if wanted level goes from 0 to X, then create the label. If it is set back to 0, destroy the label and reset variable. If wanted level changes value above 0, update the text only without re-creating the label.