mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-25 21:40:19 +00:00
Add weapons to players
This commit is contained in:
parent
8457c5550e
commit
47bc30b0a9
1 changed files with 1 additions and 0 deletions
|
@ -112,6 +112,7 @@ namespace SanAndreasUnity.Behaviours
|
|||
var spawn = spawns.RandomElement();
|
||||
var ped = Ped.SpawnPed(Ped.RandomPedId, spawn.position, spawn.rotation);
|
||||
player.OwnedPed = ped;
|
||||
ped.WeaponHolder.autoAddWeapon = true;
|
||||
|
||||
Debug.LogFormat("Spawned ped for player {0}, net id {1}", player.connectionToClient.address, ped.netId);
|
||||
|
||||
|
|
Loading…
Reference in a new issue