don't show "..." button in Peds window on clients

This commit is contained in:
in0finite 2021-02-22 17:44:29 +01:00
parent 780a02e842
commit e649952aa9

View file

@ -120,8 +120,11 @@ namespace SanAndreasUnity.UI {
// display button which will open additional options
itemRect = GUIUtils.GetNextRectInARowPerc (rect, ref i, buttonSpacing, widthPercsButtons);
if (GUI.Button (itemRect, "...")) {
m_currentPedIdWithOptions = def.Id;
if (NetUtils.IsServer)
{
if (GUI.Button (itemRect, "...")) {
m_currentPedIdWithOptions = def.Id;
}
}
if (m_currentPedIdWithOptions == def.Id) {