QBcore [Standalone]Advanced Public Transport AI

CR LEAKS

CR LEAKS

Administrative
Joined
Mar 25, 2022
Messages
1,270
Reaction score
5,180
Points
113
Credits
18,714
f474f315f6d66be59d86195a3f6b793d3395cc31_2_690x484



What’s this​

This resource will make public transport aviable managed by the game AI.



No more out of scope entity management​

If one or more players are close enough to a bus, you will see a bus driving around.
When no players are close enough to a bus, the server will simulate its position based on the baked data.

No requirements​

Completely standalone, no framework or resources needed

Add custom routes​

  1. Open config.lua and create a new route like in the example.
    IMPORTANT NOTES:
    • always add the route at the end of the Config.Routes table
    • when adding a new stop in the busStops array, avoid to get the position in the middle of a crossroad
  2. Once you’ve done it, restart the resource and use the command /bake routeId, where routeId is the position of the route in the Config.Routes table.
  3. As soon as the bake is done (check client console for errors), you will see on the map some blips indicating the route just calculated (for few seconds) and a file will be saved in /bake_data/baked_routes/.
  4. Do a /refresh since there are a new files, and /restart publictransprot.
  5. You are done. Everything should start working fine.
Tip: once you have done baking the new routes, remove from the fxmanifest.lua file 'client/bake.lua' line, so no one will be able to run the /bake

DOWNLOAD
Please, Log in or Register to view URLs content!

 
  • Like
Reactions: ciro25, eazy8033, dinothperera075 and 4 others
K

karakanrp

Registered
Joined
Sep 26, 2022
Messages
1
Reaction score
0
Points
1
Credits
92
D

dinothperera075

Registered
Joined
Jul 30, 2023
Messages
1
Reaction score
0
Points
1
Credits
69
RealGeekGaming

RealGeekGaming

Registered
Joined
Sep 11, 2023
Messages
4
Reaction score
0
Points
1
Credits
76
C

ciro25

Registered
Joined
Jun 17, 2022
Messages
8
Reaction score
0
Points
1
Credits
66
4,446Threads
10,334Messages
39,475Members
bobpops12Latest member
Top