21.12.2024

Updates v1.2.0

  • New Armor System Added | Video

    • If you don’t want to use this system, you can disable it from the config.

    • You can add multiple types of armor through the config file.

    • When you equip armor, the character’s armor value increases based on the type of armor, and the item is added to the armor slot.

    • If you equip a different armor while already wearing one, the currently equipped armor is automatically removed and added back to the inventory.

    • When removing armor, the item's armor value is adjusted to match the character's current armor value. For example, if the character’s armor value is 35 when the armor is removed, the item will be set to 35. When the player equips the armor again, the character’s armor value will be set to 35.

Note: You need the update tgiann-core

modified:   fxmanifest.lua (Version value has changed)
modified:   client/client.lua
modified:   client/dev.lua
modified:   client/editable.lua
modified:   client/metaData.js
modified:   languages/en.lua
modified:   languages/tr.lua
modified:   server/FWFunctions.lua
modified:   server/editable.lua
modified:   server/server.lua
modified:   sql_main.sql
modified:   ui/build (delete the 'ui/build' folder before updating the 'ui/build' folder)
new:   client/realisticArmor.lua
new:   configs/configRealisticArmor.lua
new:   server/realisticArmor.lua

SQL

ALTER TABLE `tgiann_inventory_player` ADD COLUMN `realisticArmorInventory` LONGTEXT NOT NULL DEFAULT '[]' COLLATE 'utf8mb3_general_ci';

Installation

  • Changed "SetPlayerItems, SetPlayerClotheItems and SetPlayerRealisticArmorItems" parts

Last updated