Tutorials

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?

1.

circle-info

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

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

2.

circle-info

Remove player vest:

exports.fivecode_armor:RemoveVest()

3.

circle-info

Steal player vest:

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

4.

circle-info

How to check if player has vest in another script?


5.

circle-info

How to create new vests?

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

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

  3. Enjoy!


6.

circle-info

How to create new vest plates?

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

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

  2. Enjoy!


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

Last updated