show utilities only on server

This commit is contained in:
in0finite 2019-07-05 21:01:29 +02:00
parent 518517a9c6
commit a7dd283fd4
2 changed files with 12 additions and 0 deletions

View file

@ -35,6 +35,14 @@ namespace SanAndreasUnity.UI {
GUILayout.Label ("Pos: " + Ped.InstancePos);
}
if (Utilities.NetUtils.IsServer)
DisplayServerGui();
}
void DisplayServerGui()
{
if (GUILayout.Button ("Spawn random vehicle")) {
var spawner = FindObjectOfType<UIVehicleSpawner> ();
if (spawner)

View file

@ -14,6 +14,10 @@
- Cell focus is not always assigned on client - it happens when a syncvar for current ped in Player script arrives after Ped.Start()
- headless server: start scene specified at cmd line ; use port from cmd line ;
- add ability for client to request: spawn vehicle ; change ped model ; commit suicide ; destroy my vehicle ; spawn stalker ped ;
- port the whole UI to multiplayer