Coder Social home page Coder Social logo

gasmunk / vehcontrol Goto Github PK

View Code? Open in Web Editor NEW

This project forked from manvaril/vehcontrol

0.0 0.0 0.0 60 KB

Vehicle Door/Window/Seat/Engine/Dome Light NUI script for FiveM

License: GNU General Public License v2.0

Lua 66.23% CSS 5.09% HTML 28.68%

vehcontrol's Introduction

vehcontrol

NUI visual menu vehicle script for FiveM

Features

  • Control
    • Hood
    • Trunk
    • Doors
    • Windows
    • Interior Light
    • Change Seats
    • Leave Engine Running on Exit
    • Bomb Bay Doors

NUI Controls

Open - Script Default: HOME

  • Script Default can be changed via config

  • Client changeable via Settings->Keybinds->FiveM game menu

Close - ESC

Commands

/engine - Start/Stop Vehicle Engine

/hood - Open/Close Hood

/trunk - Open/Close Trunk

/seat [1-4]- Move Seat

/door [1-4] - Open/Close Door

/window [1-4] - Roll Up/Down Window

/windowfront - Roll Up/Down Front Windows

/windowback - Roll Up/Down Back Windows

/windowall - Roll Up/Down All Windows

/vehcontrolclose - Close NUI (in F8 if stuck open)

Config

UseCommands [true/false] - Allow the use of /commands

DisableSeatShuffle [true/false] - Allow auto-seat shuffle from passenger to driver

LeaveRunning [true/false] - Allow the engine to keep running on exit of the vehicle with a long F keypress

DefaultOpen - This is they default key to open the menu, client can change in the game menu (Settings->Key Binds->FiveM)

Exporting and Events

The following ways can be used to open the menu from another resource depending on how the resource is coded

Open menu from another resource with exports

exports.vehcontrol:openExternal()

Open menu from another resource with events

TriggerEvent("vehcontrol:openExternal")

TODO

  • Nothing Currently

Feature request can be made Here

Changelog

v1.1.7

  • Added Bomb Bay Doors #22

v1.1.6

  • Added KeyMapping so clients can change the keybind in the game menu
  • Added Default Key to config

v1.1.5

  • Added new manifest file #10

v1.1.4

  • Added secondary way to call the menu using events

v1.1.3

  • Added Exports to call the menu from another resource

v1.1.2

  • Merged Pull request #2 by yhtrae, which added a fix for disabling the opening of the menu while in the ESC pause menu
  • Added ability to keep the engine running when you get out of the drivers seat
  • Add LeaveRunning [true/false] flag to config

v1.1.1

  • Fix Auto-Seat Shuffle
  • Add DisableSeatShuffle [true/false] flag to config

v1.1.0

  • Fixed seat switching (was unable to move to driver from every seat)
  • Added config.lua with settings
  • Added /engine command
  • Added /hood command
  • Added /trunk command
  • Added /door command
  • Added /seat command
  • Added /window command
  • Added /windowfront command
  • Added /windowback command
  • Added /windowall command
  • Added vehcontrolclose command (use in F8 if NUI stuck open)
  • Restructured code to be modular with NUI and Commands

v1.0.0

  • Initial Release

License

Copyright 2020 Manvaril

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.

vehcontrol's People

Contributors

manvaril avatar yhtrae 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.