项目作者: TheRealToxicDev

项目描述 :
Simple Custom Loadouts for FiveM using EssentialMode
高级语言: Lua
项目地址: git://github.com/TheRealToxicDev/Custom-Loadouts.git
创建时间: 2021-02-08T18:57:35Z
项目社区:https://github.com/TheRealToxicDev/Custom-Loadouts

开源协议:

下载


Custom Loadouts

Note This project will not be maintained unless it is highly requested.

A loadout system for the FiveM mod for GTA-V.
Give your players the ability to change their skin and weapons!

Prerequisites

Before you install this plugin, please make sure to follow the installation instructions for EssentialMode.

Usage

To use the scripts, you just have to modify the “loadouts.lua” file to your preference.
Below you can see a rundown of how you can configure the loadouts (Note: This is only one loadout, see the default “loadouts.lua” file for more).
The example below will allow the players to use the command /loadout cop.

  1. LOADOUTS = {
  2. ["cop"] = { -- The argument to the /loadout command (i.e /loadout cop)
  3. name = "Cop", -- The name of the loadout (shown to players)
  4. permission_level = 0, -- The essential mode permission needed to run this command
  5. weapons = { "WEAPON_PISTOL50", "WEAPON_STUNGUN", "WEAPON_NIGHTSTICK", "WEAPON_PUMPSHOTGUN", "WEAPON_FLAREGUN" }, -- List of weapons the player will get with this loadout
  6. skins = { "s_m_y_swat_01", "s_m_y_swat_01" } -- List of potential skins for the player (random)
  7. }
  8. }

The players can also run the /loadout help command to get a list of loadouts they can use.

Please note: Adding a “help” loadout will remove this functionality :cry:

Installing

  1. Copy the plugin into it’s own folder in the resources/ folder.

    • E.g. resources/fivem-loadouts
  2. Modify your “AutoStartResources” to load the plugin. It should look like

    1. AutoStartResources:
    2. - chat
    3. ...
    4. - fivem-loadouts

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D