Creates a vehicle.
Note: If shared API was used when creating, then the created entities are not deleted on ResourceStop
Vehicle position can be changed without recreating the vehicle again with setEntityPosition
An issue has been detected with rapidly spawning vehicles, and vehicles ending up at position 0, 0, 0. A temporary workaround is to sleep for a few milliseconds inbetween the spawns.
- Example 1
- Example 2
- Example 3