Mtasa-blue: clearChatBox() returns false serverside if the player is root

Created on 14 Feb 2019  路  3Comments  路  Source: multitheftauto/mtasa-blue

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

bug good first issue

Most helpful comment

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

All 3 comments

cc @CrosRoad95

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

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

CrosRoad95 picture CrosRoad95  路  4Comments

PlatinMTA picture PlatinMTA  路  3Comments

patrikjuvonen picture patrikjuvonen  路  3Comments

Cazomino05 picture Cazomino05  路  3Comments

CrosRoad95 picture CrosRoad95  路  4Comments