Coder Social home page Coder Social logo

winject / nocarjack Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 7.0 22 KB

FiveM script - No more grand theft auto

Home Page: https://forum.fivem.net/t/release-no-more-npc-parked-vehicle-stealing/

C# 100.00%
grand theft auto five gta5 citizenfx fivem-script car-stealing vehicle-stealing car

nocarjack's Introduction

NoCarJack

Version

1.2.1

Description

Yet pretty simple, but it should be efficient against the annoying NPC car-jacking and car stealing on roleplay based severs. This will force your players to find other means to reach their destination. The ability to steal cars is based on a "luck" factor. No more random grand theft auto.

Features

  • Works on all vehicles (cars,bikes,trucks,helicopters,planes,boats,...)
  • Prevent parked vehicle stealing
  • Prevent any kind of grand theft auto (car-jacking, passenger car-jack, etc)
  • Vehicle stealing/car-jacking is only allowed only by a predefined threshold
  • Compatible with any vehicle control script
  • Ability to skip a vehicle check with an event
  • Low CPU usage

Installation

  1. Download from the release page and extract the content in your resources directory
  2. Add - nocarjack in your AutoStartResources ( citmp-server.yml)
  3. Restart server

Usage

See the wiki for usage and further information.

nocarjack's People

Contributors

winject avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

nocarjack's Issues

Player can't use more than one vehicle

lastVeh is only working with single entities, which means if a player exits vehicle X and gets in Y, X becomes unavailable if he's unlucky. A potential fix would be to store all the player driven vehicles in an array (client-side of course)

permission system

Hi,

Can you add a permission level system? If a players have permission "cop.thief" for example he can steal all cars

Can't read private vehicles stored in a database

I haven't currently seen this feature being ran yet, but in the future of roleplay, players will own vehicles which will be stored in a server database. This means, everytime a player connects, he should be able to access his owned vehicles.

The actual stage of the script doesn't allow such interaction. One possible solution would be to store all the owned vehicles into an array (client-side) and having it filled only when the player connects to the server.

Blowtorch

So when you use a blowtorch on a car to "Hijack" it doesn't actually let you in the vehicle

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.