mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-23 20:43:04 +00:00
24 lines
499 B
C#
24 lines
499 B
C#
using UnityEngine;
|
|
|
|
namespace SanAndreasUnity.Behaviours
|
|
{
|
|
|
|
public class UIVehicleSpawner : MonoBehaviour
|
|
{
|
|
public KeyCode spawnKey = KeyCode.V;
|
|
|
|
|
|
private void Update()
|
|
{
|
|
if (Input.GetKeyDown(spawnKey) && GameManager.CanPlayerReadInput())
|
|
{
|
|
if (Ped.Instance != null)
|
|
{
|
|
Chat.ChatManager.SendChatMessageToAllPlayersAsLocalPlayer("/veh");
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
}
|