mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-14 00:07:15 +00:00
revert adaption
This commit is contained in:
parent
e36c87861f
commit
000a8a6cc9
2 changed files with 8 additions and 3 deletions
|
@ -1,4 +1,5 @@
|
|||
using UnityEngine;
|
||||
using SanAndreasUnity.Utilities;
|
||||
using UnityEngine;
|
||||
|
||||
namespace SanAndreasUnity.Behaviours
|
||||
{
|
||||
|
@ -14,6 +15,9 @@ namespace SanAndreasUnity.Behaviours
|
|||
{
|
||||
if (Ped.Instance != null)
|
||||
{
|
||||
if (NetUtils.IsServer)
|
||||
Vehicles.Vehicle.CreateRandomInFrontOf(Ped.Instance.transform);
|
||||
else
|
||||
Chat.ChatManager.SendChatMessageToAllPlayersAsLocalPlayer("/veh");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
using UnityEngine;
|
||||
using SanAndreasUnity.Behaviours;
|
||||
using System.Linq;
|
||||
using SanAndreasUnity.Behaviours.Vehicles;
|
||||
|
||||
namespace SanAndreasUnity.UI {
|
||||
|
||||
|
@ -56,7 +57,7 @@ namespace SanAndreasUnity.UI {
|
|||
|
||||
if (GUILayout.Button ("Spawn random vehicle")) {
|
||||
if (Ped.Instance != null)
|
||||
SendCommand("/veh");
|
||||
Vehicle.CreateRandomInFrontOf(nearbyTransform);
|
||||
}
|
||||
|
||||
if (GUILayout.Button("Change player model"))
|
||||
|
|
Loading…
Reference in a new issue