GithubHelp home page GithubHelp logo

snowqt / captains-contextmenu-fivem Goto Github PK

View Code? Open in Web Editor NEW

This project forked from captaindarkness/captains-contextmenu-fivem

0.0 1.0 0.0 728 KB

Lua 99.43% CSS 0.15% HTML 0.01% JavaScript 0.41%

captains-contextmenu-fivem's Introduction

Captains-ContextMenu-FiveM

About

A Raytrace & Entity based context menu for GTA V FiveM.
Perform actions based off the Entity you are interacting with in the world. Such as Vehicles, ATMs, Phonebooths, Trashcans, Doors, Cashregisters and all other Entities that the game offers.

NOTE: This is a context menu Shell meaning features such as the Police menu are just an Empty menu buttons that do nothing but they are setup in such a way that you can easily add calls to them such as Exports to actual Police related scripts. It's there as an Example on how YOU can add your own actions to it. It is a system to be build on and have it work how YOU want it to.
READ THE HOW TO MODIFY AT THE BOTTOM

How to Install

  • Clone or Download the contextmenu and hashtomenu folders.
  • Drop the two folders in your FiveM Server Resources folder.
  • Add the Resources to your FiveM server.cfg file. (To be safe start the hashtoname resource BEFORE the contextmenu)

How to Use

  • Toggle NUI via the assigned key (Default: Z(Can be changed))
  • Cursor appears on the screen.
  • Right click on an Entity. (Cars, Peds, obejcts)
  • Select the option/task you want to perform.

Screenshots

Car Menu
Car Menu Car sub Menu
Object Menu
Object Menu
Job Menu
Tow Menu Police Menu
Illegal options
Steal Menu Lockpick Menu
Export Entity
Steal Menu

How to Modify

In the code itself i've written comments on how everything works and how YOU can add your own functionality to the resource.
The code contains Examples on how you can implement your own options as well as some features, such as the Doors menu which is fully operational.
Every action (button) in the menu leads to somewhere. Meaning you can easily add the code you want and the actions you want to happen when X button on the menu is pressed.

Shout outs:

  • Simu, for code related to Screen to world coords.
  • Taso, Frontend assistance with bugs (CSS/JS)
  • VenomXNL, for Object name from Hash -> https://github.com/VenomXNL/ObjectNameFromHash
    (The version of HashToName is a Modified version of VenomXNL's repo to allow for Exports instead of prints)

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.