Skip to content

Commit

Permalink
fix(server): IPlayer.EntityAimingAt
Browse files Browse the repository at this point in the history
  • Loading branch information
Doxoh committed Dec 14, 2023
1 parent 64f1731 commit c83882c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion api/AltV.Net/Elements/Entities/Player.cs
Original file line number Diff line number Diff line change
Expand Up @@ -858,7 +858,9 @@ public IEntity EntityAimingAt
var type = BaseObjectType.Undefined;
var entityPointer = Core.Library.Shared.Player_GetEntityAimingAt(PlayerNativePointer, &type);
if (entityPointer == IntPtr.Zero) return null;
return Alt.Core.PoolManager.Vehicle.Get(entityPointer);

var entity = (IEntity)Core.PoolManager.Get(entityPointer, type);
return entity;
}
}
}
Expand Down

0 comments on commit c83882c

Please sign in to comment.