NTScripts Docs
  • ⛽NT_FUEL
  • ☀️NT_WEATHER
  • 💖NT_HUD
  • 📗NT_MENU
  • 📲NT_NOTIFICATION
  • 🚗NT_RENTAL
  • 🏦NT_CASH
  • 🗣️NT_DIALOGSYSTEM
  • 🕺🏻NT_ESSENTIALANIMATIONS
Powered by GitBook
On this page

☀️NT_WEATHER

Previous⛽NT_FUELNext💖NT_HUD

Last updated 10 months ago

NT_WEATHER/server/vars.lua

commandname: Custom command to open the menu.

hour: Default hour for when the server restarts.

minute: Goes along with the hour to set the default minute once the server restarts.

blackout: Indicates a city-wide blackout.

freezeTime: Freezes time so it never progresses.

freezeWeather: Freezes the weather so it never changes. weather: Set a default weather condition when the server restarts from the following:

    'EXTRASUNNY',
    'CLEAR',
    'NEUTRAL',
    'SMOG',
    'FOGGY',
    'OVERCAST',
    'CLOUDS',
    'CLEARING',
    'RAIN',
    'THUNDER',
    'SNOW',
    'BLIZZARD',
    'SNOWLIGHT',
    'XMAS',
    'HALLOWEEN',

NT_WEATHER/allow.lua

Add people to the list of users allowed to access the time and weather interaction menu:

Add the full identifier like in the screenshot.

NT_WEATHER/shared_config/framework.lua

FRAMEWORK: Set the framework corresponding to your server's base, for example, ESX if it's ESX, or QBCORE if it's QBCORE. For suggestions on possible implementations for new frameworks, open a ticket through Discord.

NT_WEATHER/client/notify.lua

Replace it with the export or event of your notification system.

It is possible to translate the interface into any other language by modifying the respective interface files. If you want us to do it for you, open a ticket through Discord.