FivecodeDocs
DiscordTebex StoreYoutube
  • Welcome
  • Scripts
    • Fivecode Clothing
      • Installation Guide
      • Config file
      • Tutorials
    • Fivecode Armor
      • Installation Guide
      • Config file
      • Tutorials
    • Fivecode Carkeys
      • Installation Guide
      • Config file
      • Tutorials
    • Fivecode Roleplay Chat
      • Installation Guide
      • Config file
      • Tutorials
    • Fivecode Camping
      • Installation Guide
      • Config file
      • Tutorials
    • Fivecode Burger Shot Job
      • Installation Guide
      • Config file
      • Tutorials
    • Fivecode UWU Cat Cafe Job
      • Installation Guide
      • Config file
      • Tutorials
    • Fivecode Vanilla Unicorn Job
      • Installation Guide
      • Config file
      • Tutorials
  • Tutorials
    • Fivem escrow System
      • Error parsing script ... <\1>
      • Failed to verify protected resource
Powered by GitBook
On this page

Was this helpful?

  1. Scripts
  2. Fivecode Armor

Tutorials

PreviousConfig fileNextFivecode Carkeys

Last updated 4 months ago

Was this helpful?

1.

How to add armor column into your users table in your database?

ALTER TABLE `users` ADD COLUMN IF NOT EXISTS `armor` LONGTEXT DEFAULT NULL;
ALTER TABLE `players` ADD COLUMN IF NOT EXISTS `armor` LONGTEXT DEFAULT NULL;

2.

Remove player vest:

exports.fivecode_armor:RemoveVest()
-- 1: Player source
exports.fivecode_armor:RemoveVest(source)

3.

Steal player vest:

-- 1: Player source
-- 2: Second player source
-- 3: Animation - (true/false)
exports.fivecode_armor:UndressVest(sourceFor, sourceFrom, anim)

4.

How to check if player has vest in another script?

-- 1: Player source
exports.fivecode_armor:HasVest(source)

5.

How to create new vests?

  1. Config.Vests = {
        ['vest_police'] = {
            label = 'Police Vest',
            maxArmor = 100,
            clothing = {
                use = true,
                male = {number = 4, color = 1},
                female = {number = 3, color = 1},
            },
            jobWhitelist = {'police', 'sheriff', 'fbi'},
            jobBlacklist = {},
        },
        ['vest_normal'] = {
            label = 'Normal Vest',
            maxArmor = 80,
            clothing = {
                use = true,
                male = {number = 4, color = 2},
                female = {number = 1, color = 2},
            },
            jobWhitelist = {},
            jobBlacklist = {},
        },
        ['vest_example'] = {
            label = 'Example Vest',
            maxArmor = 50,
            clothing = {
                use = true,
                male = {number = 4, color = 3},
                female = {number = 1, color = 3},
            },
            jobWhitelist = {},
            jobBlacklist = {},
        },
    }
  2. Enjoy!


6.

How to create new vest plates?

Config.Plates = {
    ['vestplate_police'] = {
        strength = 10,
    },
    ['vestplate_normal'] = {
        strength = 5,
    },
    ['vestplate_example'] = {
        strength = 2,
    },
}
  1. Enjoy!


Create new vest in: - To create a new vest, simply duplicate an existing one from the config for easier setup.

Create a new item with your vests name in your inventory: - In this example it will be vest_example. - Look into if you need help with creating items for your inventory.

Create new vest in: - To create a new vest plate, simply duplicate an existing one from the config for easier setup.

Create a new item with your vests plate name in your inventory: - In this example it will be vestplate_example. - Look into if you need help with creating items for your inventory.

If you need help with anything, do not hesitate and open a support ticket in our .

config.lua
Installation Guide
config.lua
Installation Guide
discord
I am missing sql file how to add armor column into my users table in my database?
How to undress a vest from a player?
How to steal a player's armor and transfer it to the thief from another script?
How to check if player has vest from another script?
How to create new vests?
How to create new vest plate?