Codex Studios
Visit our Tebex StoreOur Discord
  • ๐Ÿ‘‹Welcome to Codex Studios
  • Overview
    • ๐Ÿ’กAbout Us
    • โœจOur Features
  • ๐Ÿ’…RedM-Scripts
    • ๐ŸŒ[Codex Studios] : Core
      • Client Side
      • Server Side - CodexCore API
      • Config
      • ๐Ÿ“ Client Side (clientside.lua)
      • ๐Ÿงพ Server Side (serverside.lua)
      • ๐Ÿ›ก๏ธCodexCore Security Module
      • ๐Ÿ—’๏ธSecurity Detailed Explanation
      • ๐Ÿ”Client-Side: Securing Event Triggers
      • ๐Ÿ”’Server-Side: Securing Event Triggers
    • ๐Ÿ’ช[Codex Studios] : Trust Level
      • Client Side
      • Config
      • SQL
  • ๐Ÿ“ฆ[Codex Studios]: Supplies System
    • Client Side
    • Server-Side Town Supplies
    • Config
    • ๐Ÿช›Examples and Commands
    • Sql Updated
Powered by GitBook
On this page

Was this helpful?

  1. [Codex Studios]: Supplies System

Sql Updated

CREATE TABLE IF NOT EXISTS `codex_supplies` (
  `town` varchar(50) NOT NULL,
  `supplies` int(11) NOT NULL DEFAULT 0,
  `has_raided` varchar(50) NOT NULL,
  PRIMARY KEY (`town`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci ROW_FORMAT=DYNAMIC;

INSERT INTO `codex_supplies` (`town`, `supplies`, `has_raided`) VALUES
    ('AnnessBurg', 2, '0'),
    ('Armadilo', 2, '0'),
    ('BlackWater', 2, '0'),
    ('Rhodes', 2, '0'),
    ('Saint Denis', 999, '0'),
    ('Strawberry', 999, '0'),
    ('TambleWeed', 999, '0'),
    ('Valentine', 999, '0'),
    ('VanHorn', 999, '0');
PreviousExamples and Commands

Last updated 1 month ago

Was this helpful?

๐Ÿ“ฆ