mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2025-02-24 19:27:16 +00:00
pressing V makes a request
This commit is contained in:
parent
8f4f319d12
commit
dec6950a48
1 changed files with 4 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue