Wiki

Clone wiki

EFLC-MP LUA / World Functions

World Functions

isValidWorld

createWorld

deleteWorld

setWorldWeather

setWorldTime

World Demo

#!lua
--The server automatically creates World 1 so lets play with it
local currentWeather = 0

function weatherChanger()
    currentWeather = currentWeather + 1
    if currentWeather > 7 then 
        --Resets the World weather 0 and hours to midnight
        currentWeather = 0
        setWorldTime(1, 0, 0)
    end

    setWorldWeather(1, currentWeather)
end

setTimer("weatherChanger", 60000, 0)

Updated