rogerioexper Posted September 23, 2016 Posted September 23, 2016 hello I'm in need of a base to make a real-time server script on the day and the night are changing very fast 10 in 10 minutes I want is 12 in 12 hours day and night on the server can help me int getMinuteDuration ( ) ---------------------------- setWeather ( 0 ) ------------------------------ local weatherID = getWeather() outputChatBox ( "The current weather ID is " .. weatherID ) --------------------------------- setWeather ( 9 ) outputChatBox ( "Weather changed to foggy!" ) ------------------------------------------------------ I do not know which to use any script can give me an initiative
Walid Posted September 23, 2016 Posted September 23, 2016 function resourceStart() local realtime = getRealTime() setTime(realtime.hour, realtime.minute) setMinuteDuration(60000) end addEventHandler("onResourceStart", getResourceRootElement(), resourceStart) Do not yield your back to your enemy, might feel something strange in your ass. Two things are infinite the universe and human stupidity and i'm not sure about the universe. UF: IsTextInGridList | GetGridListRowIndexFromText | Table.removeValue | removeHex | dxDrawTriangle Skype: SaSuki102 | About Me | Youtube channel | Lua Tips & Tricks | Lua Strings | Lua Tables | Lua Operators
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now