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

pressing V makes a request

This commit is contained in:
in0finite 2019-07-06 00:43:38 +02:00
parent 8f4f319d12
commit dec6950a48

View file

@ -16,7 +16,10 @@ public class UIVehicleSpawner : MonoBehaviour
{
if (Input.GetKeyDown(spawnKey))
{
SpawnVehicle();
if (Utilities.NetUtils.IsServer)
SpawnVehicle();
else if (Net.PlayerRequests.Local != null)
Net.PlayerRequests.Local.RequestVehicleSpawn();
}
}