Giter Site home page Giter Site logo

js5m_gunrack's Introduction

image

โœจ Description

This is a script to place a gun rack in the world, and use it for storing weapons.

๐Ÿ‘€ Usage

Use the included sql script to create the required table and add the snippet below to create the item. Use the gunrack item in your inventory to start the placement process. Once you've placed the rack, you can then target the rack to store weapons in it, or take weapons from it. Optionally, you can set a passcode on the gunrack to limit access to it.

๐Ÿ“š Items

You will need to add a gunrack item to your inventory items list.

['gunrack'] = {
  label = 'Gun Rack',
  weight = 10000,
  stack = false,
  consume = 0,
  client = {
      export = 'js5m_gunrack.placeGunRack',
  },
},

๐Ÿ”— Dependencies

๐Ÿ‘ Credit

A huge thank you to FjamZoo for his research and work with weapons components and skins. Thanks to Snipe for writing the MySQL module code for this. Also, huge shoutout to the Overextended group for their continued work on the ox resources. A big thank you to the guy that was selling roughly this same thing for โ‚ฌ120 on the Releases forum, for the motivation to work on this. Keep FiveM free!

โœ… TODO

  • PRs are always welcome to add more weapons to the config. I'm sure I'm missing some.
  • Make stun gun its own space
  • Add ammo/armor storage spaces
  • Optimize offsets and rotations
  • Add prop_cs_gunrack functionality

Preview

Rack Placement

https://streamable.com/c98cv3

Store and Take Weapons

https://streamable.com/86msx5

Discord

Joe Szymkowicz FiveM Development

js5m_gunrack's People

Contributors

joeszymkowiczfivem avatar pushkart2 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.