altmp / altv-issues

Issues and roadmap for alt:V project
93 stars 16 forks source link

Wrong entity.Type for LocalPed in OnGameEntityCreate #2252

Closed M1raclee closed 7 months ago

M1raclee commented 7 months ago

Description of the problem

Alt.OnGameEntityCreate += (entity) =>
{
  Alt.Log("OnGameEntityCreate " + entity + " type: + " + entity.Type);
};

Gives me log with wrong entity type: OnGameEntityCreate AltV.Net.Client.Elements.Entities.LocalPed type: + LocalVehicle

Reproduction steps

  1. Create LocalPed
  2. Add OnGameEntityCreate event subscription with log of streamed entity type
  3. Enter in stream zone of local ped
  4. Ensure LocalPed has LocalVehicle type

Expected behaviour

LocalPed entity has LocalPed type

Additional context

NuGet: AltV.Net.CApi 16.0.0-dev.29

Operating system

Windows 10

Version

16.0.0-dev.288

Crashdump ID

No response

Confirmation of issue's presence

Doxoh commented 7 months ago

fixed with nuget 16.0.0-dev.30