Giter VIP home page Giter VIP logo

live_map's Introduction

layout title has_children permalink
default
LiveMap Resource
true
/livemap-resource

LiveMap Resource (for FiveM)

All Contributors

This is the "backend" code for the live_map addon for FiveM that is ran on the FiveM game server. It creates a websocket server so that it can communicate to the web interface.

How to install

Download the ZIP file. And extract the contents into resources/live_map/.

Add the following to your server.cfg file.

set socket_port 30121
set livemap_debug "warn" # "[all]" 'trace', 'debug', 'info', 'warn', 'error', 'fatal', 'off'
set blip_file "server/blips.json"
set livemap_access_control "*"

ensure live_map

Now, you can enable the built-in client. Copy the example_client folder to client (this will allow you to update the resource without losing any changes to the client you make). Now, head on into the manifest file (fxmanifest.lua or whatever the latest version is called) and uncomment the client files.

client_script "client/*.lua"
 exports {
     "reverseWeaponHash", "reverseVehicleHash", "reverseStreetHash",
     "reverseZoneHash", "reverseAreaHash"
}

To get the in-game blips to show on the interface, you will need to generate a "blips" file. This can be easily done with the in-game command blips generate (must have permission, see the offical documentation).

Configuration

Please see the config file for the convars used by this resource.

Events

In an effort to make the addon useful to other developers, I've created a few events that can be used to make changes to the data being sent to the UI.

Please see the events page for more information.

Contributors ✨

Thanks goes to these wonderful people (emoji key):


Jordan Dalton

💻 🐛 🤔 📖

AciD

🐛

David Wheatley

🐛

KjayCopper

⚠️

jiynn

🐛

mbergwall2222

🐛

Jasen Samuels

🐛

Avery Johnson

💻

Tom

💻

matsn0w

🐛

This project follows the all-contributors specification. Contributions of any kind welcome!

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.