qbcore-framework / qb-garages

Garage System Used With QB-Core :car:
GNU General Public License v3.0
48 stars 259 forks source link

[BUG] server side spawning with ped #316

Closed IRP-Development closed 8 months ago

IRP-Development commented 10 months ago

Describe the bug Server side vehicle spawning using(CreateVehicleServerSetter) has a known issue where it spawns a ped inside the vehicle as seen in these forum links and the ped will drive away...

https://forum.cfx.re/t/sometimes-an-npc-spawns-inside-an-vehicle-spawned-with-createvehicleserversetter-or-create-automobile/4947251/8

and here: https://forum.cfx.re/t/server-setter-vehicles-spawn-with-peds-in-them/4936285

To Reproduce Steps to reproduce the behavior:

check the forums links provided ^^

Additional context

switching to use the server side native CreateVehicle would resolve this problem, or if CreateVehicleServerSetter must be used then some logic could be done do get the ped/delete the ped... from what i can see these issues have existed since the CreateVehicleServerSetter natives was introduced.

github-actions[bot] commented 8 months ago

This issue has had 60 days of inactivity & will close within 7 days

GhzGarage commented 8 months ago

Thank you i'll look into it