Giter Club home page Giter Club logo

emergencyblips's Introduction

Emergency Blips

Looking for a script to add blips on the map for only certain players -- like police, or EMS for example? Look no further!

Screenshot

weaponsonback|690x388

(An example of a blip that shows for only certain specified players)

Features

  • Works for any framework (as well as no framework, of course)
  • Easy API

Installation

  • Download from here.
  • Put the EmergencyBlips folder into your server's resources folder.
  • Add start EmergencyBlips to your server's server.cfg file.
  • Enjoy!

Usage

  • Use TriggerEvent("eblips:add", {name = "Jane Doe", src = 123, color = 1}) when you want to make a person show up on the map for other people who have also been made to show on the map.

  • Use TriggerEvent("eblips:remove", serverID) when you want to stop a person who is showing up on the map from showing on the map.

  • For eblips:add: name is the text that shows on the map when a blip is selected, src should be the player's server ID, and color is the blip color.

  • Both events are server events.

  • See https://wiki.gtanet.work/index.php?title=Blips for blip color codes (at bottom).

P.S. this is a developer resource and does nothing by itself, you must use the above two events for blips to show. Oh, and feel free to offer feedback, suggestions, or even contribute via the repository!

emergencyblips's People

Contributors

minipunch avatar urbaniized avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

emergencyblips's Issues

SRC ID

Where do you get the Player Source ID From? Is that the Steam ID in the DB?

txadmin not showing

when i go add the script in to the server files i can not start it because it dose not pop up in the txadmin

[suggestion] Add exports

make TriggerEvent(“eblips:add”, {name = “Jane Doe”, src = 123, color = 1}) and TriggerEvent(“eblips:remove”, serverID) exports or give som more info in how to use the events in other scripts.

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.