Skip to content

OxVehicle not spawning/despawning #25

@ktox-dev

Description

@ktox-dev

Im having alot of issues with spawning and despawning vehicles. I am trying to use the OxVehicle.respawn(coords, heading) function, it doesnt work if the vehicle is spawned, only if you trigger OxVehicle.despawn(true) earlier and wait some times for me it works like this:

Image

also i can find this error in the f8 console

Image

If the vehicle doesnt spawn just using OxVehicle.respawn reusing OxVehicle.respawn doesnt work either, only restarting ox_core or using OxVehicle.despawn makes the vehicle spawnable again. I cant really make out what the issues is as it seems very random. Also if using OxVehicle.despawn and OxVehicle.respawn after the vehicle still sometimes despawns after a few seconds with the error posted above.
For anymore infos needed on this issues I can provide everything needed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions