This commit is contained in:
in0finite 2021-07-20 01:13:38 +02:00
parent fcdefaf1c0
commit 566f1ab7f6

View file

@ -58,11 +58,13 @@ namespace SanAndreasUnity.Behaviours
public static Transform GetSpawnFocusPos() public static Transform GetSpawnFocusPos()
{ {
if (Ped.Instance) var ped = Ped.Instance;
return Ped.Instance.transform; if (ped != null)
return ped.transform;
if (Camera.main) var cam = Camera.main;
return Camera.main.transform; if (cam != null)
return cam.transform;
return null; return null;
} }