mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-15 00:37:09 +00:00
adapt VehicleSpawnerWindow
This commit is contained in:
parent
a935c442ae
commit
8510935b63
1 changed files with 11 additions and 1 deletions
|
@ -88,7 +88,17 @@ namespace SanAndreasUnity.UI {
|
|||
//GUILayout.BeginHorizontal ();
|
||||
|
||||
if (GUILayout.Button (v.GameName, GUILayout.Width(this.columnWidths[0]))) {
|
||||
Vehicle.CreateInFrontOf (v.Id, Ped.Instance.transform);
|
||||
|
||||
if (Utilities.NetUtils.IsServer)
|
||||
{
|
||||
if (Ped.Instance != null)
|
||||
Vehicle.CreateInFrontOf (v.Id, Ped.Instance.transform);
|
||||
}
|
||||
else if (Net.PlayerRequests.Local != null)
|
||||
{
|
||||
Net.PlayerRequests.Local.RequestVehicleSpawn(v.Id);
|
||||
}
|
||||
|
||||
}
|
||||
//GUILayout.Label (v.ClassName, GUILayout.Width (this.columnWidths [1]));
|
||||
//GUILayout.Label (v.Id.ToString(), GUILayout.Width (this.columnWidths [2]));
|
||||
|
|
Loading…
Reference in a new issue