TWH-Scripts
  • 👋Welcome!
  • About us
    • 🚀Vision, Mission & Focus
      • Vision
      • Mission
      • Focus
    • 💖Values
  • Team
    • 👋Meet the Team!
  • Collaborating
    • 🤝How we Work Together
  • Resources
    • 📄Script-Documentations
      • Addiction
      • Bankrob
      • BodyStatusText
      • Calendar-Rewards
      • Collect
      • Lumber & Mining Essentials
      • Collector's Conquest Bundle
        • Tradingcards
        • Boosterpacks
        • Tradingcard Upgrades
      • Custom Dates
      • Dispatch-System
      • Lawmen
      • Mapmarker
      • NPC-Guides
      • Oilcorp.
      • Processing
      • Promotion-Pass
      • Social-Level System
      • Social-Pass
      • Storage
    • 📂Open Source
    • 📝Useful Snippets and Info
      • Addiction and Metabolism
  • Services
    • 🛠️Custom Orders and Personalized Development Services
    • 📖Advanced Logging System
Powered by GitBook
On this page
  • Instruction manual
  • Installation
  1. Resources
  2. Script-Documentations

Custom Dates

Frameworks: Standalone

PreviousTradingcard UpgradesNextDispatch-System

Last updated 1 year ago

TWH Custom Dates is a versatile and configurable in-game date and time display system designed for seamless integration with your server. This unique script ensures an immersive in-game experience while providing practicality for developers.

Key Features:

  1. In-game date display: The current in-game date is prominently shown at the top of the screen whenever the map is opened, keeping players informed about the progression of time in the game world.

  2. Customizable appearance: You can easily change the appearance of the date display to fit your server's theme. The open client file allows you to adjust the font, size, color, and format of the date as per your preferences.

  3. Customizable timescales: Much like the weathersync system, twh_customDates allows you to set custom timescales, giving you greater control over the pace of time in your server.

  4. Customizable year setting: You can set a custom year for your server or fix it to a specific year, enabling you to better tailor the game environment to your desired historical period or setting.

  5. API functions: The script includes API functions to retrieve the exact in-game time. This feature allows you to incorporate the accurate in-game time into your other systems, ensuring a synchronized experience across your server.

  6. Special calculation: twh_customDates uses a unique calculation to avoid reliance on wait timers, which eliminates the issue of desynchronization. This ensures the in-game time always remains accurate and consistent.

With the twh_addiction script, you can provide your players with a realistic and engaging drug addiction experience. Create the perfect environment with custom items, addictions, and effects to suit your unique game world.

Initialization

local DatesAPI = exports['twh_customDates'].customDateAPI()

Usage

local customDate = DatesAPI.getCustomDate() --returns years,months,weeks,days,hours,minutes,seconds

Instruction manual

Installation

Add following line to your server.cfg or ressource.cfg:

  • ensure twh_customDates

📄
TWH-Scripts | twh_customDates [Subscription]
TWH-Scripts | twh_customDates
Logo
Logo