mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-27 06:20:17 +00:00
23 lines
506 B
C#
23 lines
506 B
C#
using UnityEngine;
|
|
|
|
namespace SanAndreasUnity.Behaviours
|
|
{
|
|
|
|
public class CharacterModelChanger : MonoBehaviour
|
|
{
|
|
public KeyCode actionKey = KeyCode.P;
|
|
|
|
|
|
private void Update()
|
|
{
|
|
if (Input.GetKeyDown(actionKey) && GameManager.CanPlayerReadInput())
|
|
{
|
|
if (Ped.Instance != null)
|
|
{
|
|
Chat.ChatManager.SendChatMessageToAllPlayersAsLocalPlayer("/skin");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|