Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clearChatBox() returns false serverside if the player is root #817

Open
PlatinMTA opened this Issue Feb 14, 2019 · 3 comments

Comments

Projects
None yet
3 participants
@PlatinMTA
Copy link

PlatinMTA commented Feb 14, 2019

Describe the bug
When using clearChatBox() or clearChatBox(root) it returns false even when the chatBox is cleared for every user. This only happens serverside.

To reproduce
/srun clearChatBox()

It will return false

Expected behaviour
It should return true.

Version
Client: v1.5.6-release-16183
Server: v1.5.6-release-16362

@patrikjuvonen

This comment has been minimized.

Copy link
Member

patrikjuvonen commented Feb 15, 2019

@patrikjuvonen patrikjuvonen added the bug label Feb 15, 2019

@patrikjuvonen patrikjuvonen added this to the 1.5.7 milestone Feb 15, 2019

@qaisjp

This comment has been minimized.

Copy link
Member

qaisjp commented Feb 15, 2019

This is because root isn't a player (the argument passed can be any node in the element tree, and it won't know if players exist downstream).

I think this issue exists for many other functions as well (say, setPedArmor(root, 100)).

@patrikjuvonen patrikjuvonen modified the milestones: 1.5.7, Backlog Feb 15, 2019

@PlatinMTA

This comment has been minimized.

Copy link
Author

PlatinMTA commented Feb 15, 2019

This is because root isn't a player (the argument passed can be any node in the element tree, and it won't know if players exist downstream).

I think this issue exists for many other functions as well (say, setPedArmor(root, 100)).

I can confirm that this also happens with setPedArmor, setElementHealth, setElementModel and probably many others.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.