Coder Social home page Coder Social logo

stolenrims's Introduction

rimjob

image This is a mod for FiveM / GTA V that aims to create some more depth to the car boosting scene (PVP).

Features:

  • Stealing Players custom Rims
  • You can steal players wheels and put them on your vehicle, pretty straight forward
  • Metadata in the item is stored when the wheels are removed so you can then use them on another vehicle

Configuration

You can change the default wheels, the progress bar times and animations if you know what you're doing

Compatibility

Since its been developed for a server running on a customised QBUS framework it's been adapted to run on the latest qb-core release

Installation

  • Go to your inventory app.js and locate the function "FormatItemInfo" and find a long list of elseif statements relating to formatting items meta Find a place to add the following line :

          "}else if (itemData.name == "stolenrims") {
              $(".item-info-title").html('<p>'+itemData.label+'</p>')
              $(".item-info-description").html('<p>'+ itemData.info.label + '</span></p><p><strong>Type: </strong><span>' + itemData.info.wheeltype + '</span></p><p><strong>Index: </strong><span>' + itemData.info.wheelindex +'</p>');
    

    (It will vary from inventory to inventory where exactly your functin is located but the basic use of metadata I believe remains the same troughout)

  • Added the png files in the img folder

  • Added these items to your shared.lua ["stolenrims"] = {["name"] = "stolenrims", ["label"] = "Rims", ["weight"] = 20000, ["type"] = "item", ["image"] = "stolenrims.png", ["unique"] = true, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = "Nice set of rims."}, ["stolenrims2"] = {["name"] = "stolenrims2", ["label"] = "Scrapyard Rims", ["weight"] = 20000, ["type"] = "item", ["image"] = "stolenrims2.png", ["unique"] = true, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = "Not so nice set of scrapyard rims."}, ["rimtool"] = {["name"] = "rimtool", ["label"] = "Universal Socket", ["weight"] = 10000, ["type"] = "item", ["image"] = "stolenrims3.png", ["unique"] = true, ["useable"] = true, ["shouldClose"] = true, ["combinable"] = nil, ["description"] = "Handy tool for removing locknuts from wheels."},

  • ensure rpbase-rimjob

  • use the item near a vehicle that hasn't got stock wheels on

If you run a FiveM server, you know what to do... but these are the basic instructions, in case you forgot:

  • Copy the resource to your Resources folder
  • Add a line to your cfg: ensure [foldername]
  • Restart server or
  • Refresh + ensure [foldername]

Where [foldername] is the folder in Resources where the .lua files are located.

Disclaimer

  • As a full time developer for a unique server support won't be offered its pretty straight forward how this works

https://escaperp.com/forum/

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.