GithubHelp home page GithubHelp logo

publictransport's Introduction

Public Transport

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

publictransport's People

Contributors

esterze avatar federicodebona avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.