mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-15 08:47:13 +00:00
pressing P makes a request
This commit is contained in:
parent
dec6950a48
commit
dbbc5cddb8
1 changed files with 4 additions and 1 deletions
|
@ -15,7 +15,10 @@ public class CharacterModelChanger : MonoBehaviour
|
|||
{
|
||||
if (Input.GetKeyDown(actionKey))
|
||||
{
|
||||
ChangePedestrianModel();
|
||||
if (Utilities.NetUtils.IsServer)
|
||||
ChangePedestrianModel();
|
||||
else if (Net.PlayerRequests.Local != null)
|
||||
Net.PlayerRequests.Local.RequestPedModelChange();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue