Add weapons to players

This commit is contained in:
in0finite 2019-04-25 02:01:40 +02:00
parent 8457c5550e
commit 47bc30b0a9

View file

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