override ped anims only on server

This commit is contained in:
in0finite 2019-07-09 00:39:04 +02:00
parent 6e989088c3
commit 25f9c8a2a7
2 changed files with 6 additions and 3 deletions

View file

@ -46,8 +46,11 @@ namespace SanAndreasUnity.UI {
// m_headerScrollViewPos = GUILayout.BeginScrollView (m_headerScrollViewPos, GUILayout.Height(headerHeight));
if (playerExists)
Ped.Instance.shouldPlayAnims = !GUILayout.Toggle( !Ped.Instance.shouldPlayAnims, "Override player anims" );
if (NetUtils.IsServer)
{
if (playerExists)
Ped.Instance.shouldPlayAnims = !GUILayout.Toggle( !Ped.Instance.shouldPlayAnims, "Override player anims" );
}
m_displayPackages = GUILayout.Toggle(m_displayPackages, "Display packages");

View file

@ -12,7 +12,7 @@
- send button input events to server:
- add ability for client to request: destroy my vehicles ;
- add ability for client to request: ;
- port the whole UI to multiplayer