2
0
Fork 0
mirror of https://github.com/GTA-ASM/SanAndreasUnity synced 2025-02-24 19:27:16 +00:00

pressing P makes a request

This commit is contained in:
in0finite 2019-07-06 00:50:03 +02:00
parent dec6950a48
commit dbbc5cddb8

View file

@ -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();
}
}