altmp / altv-issues

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

Vehicle interior bug #2225

Closed Lekenthu closed 8 months ago

Lekenthu commented 8 months ago

Description of the problem

If you teleport a vehicle into a gta v interior with a server-side .pos property while sitting in it, the interior is not loaded. (The getInteriorFromEntity native returns 0.) If you set the position of the vehicle on the client side with setEntityCoordsNoOffset native, the interior is loaded. Entitysets are set correctly in all cases.

Reproduction steps

For example: vehicle.pos = new alt.Vector3(809.4625854492188, -3003.88330078125, -69.6312713623) -> not loaded

Workaround: Server-side: vehicle.pos = new alt.Vector3(809.4625854492188, -3003.88330078125, -69.6312713623) -> not loaded Client-side: game.setEntityCoordsNoOffset(veh.scriptID, 809.4625854492188, -3003.88330078125, -69.631271362, true, true, true); -> loaded

Expected behaviour

-

Additional context

No response

Operating system

Windows 11

Version

alt:V build #16.0.69, branch release

Crashdump ID

No response

Confirmation of issue's presence

xxshady commented 8 months ago

Duplicate of https://github.com/altmp/altv-issues/issues/2206?

Lekenthu commented 8 months ago

Duplicate of #2206?

Hm, maybe yes.