Coder Social home page Coder Social logo

derl30n / 5m_holster Goto Github PK

View Code? Open in Web Editor NEW
8.0 8.0 3.0 97 KB

GTA FiveM Script to control ped equipment for weapon interactions.

License: GNU General Public License v3.0

Lua 100.00%
baton cfx-resource equipment eup fivem fivem-lua fivem-script flashlight holster holsters taser weapon weapons

5m_holster's People

Contributors

derl30n avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

5m_holster's Issues

Improve config so that da dummy can use it

current config:

-- see https://wiki.rage.mp/index.php?title=Weapons
addWeapon("weapon_pistol_mk2")
addWeapon("weapon_combatpistol")
addWeapon("weapon_stungun")
addWeapon("weapon_nightstick")

addPed("mp_f_freemode_01")
addPed("mp_m_freemode_01")

-- add component from component_ids table
supported_equipment = {
    [supported_ped.mp_f_freemode_01] = {
        [component.teef] = {
            [supported_weapons.weapon_pistol_mk2] = {
                construct_equipment(1, 3),
                construct_equipment(8, 2),
                construct_equipment(9, 7),
                construct_equipment(29, 30),
                construct_equipment(81, 82)
            },
            [supported_weapons.weapon_combatpistol] = {
                construct_equipment(6, 5)
            }
        },

        [component.accs] = {},
        [component.task] = {}
    }
}

what it should look like so dummies are able to EASILY manipulate it

-- add component from component_ids table
supported_equipment = {
    ["mp_f_freemode_01"] = {
        [component.teef or 6] = {
            ["weapon_pistol_mk2"] = {
                equipment(1, 3)
            },
            ["weapon_combatpistol"] = {
                equipment(6, 5)
            }
        },

        [component.accs] = {},
        [component.task] = {}
    }
}

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.