marty000123 Posted August 22, 2014 Share Posted August 22, 2014 Yo I'm searching a script to freeze the time at 22:00. Can anyone help me please? Marty Link to comment
SkatCh Posted August 22, 2014 Share Posted August 22, 2014 here you go you can use this simple script : addEventHandler( 'onClientRender', getRootElement( ), function( ) setTime( 22, 0 ) <----- Put time here end ) Link to comment
Anubhav Posted August 22, 2014 Share Posted August 22, 2014 -- not sure L( function getMyTimer() local timer = getTime() if timer == 22,0 then addEventHandler("onClientRender", root, setMyTime) end end addEventHandler("onClientRender", root, getMyTimer) function setMyTime() setTime( 22, 0 ) end Link to comment
Scripting Moderators Sarrum Posted August 22, 2014 Scripting Moderators Share Posted August 22, 2014 setMinuteDuration Link to comment
marty000123 Posted August 22, 2014 Author Share Posted August 22, 2014 All aren't working. I even made a server.lua AND A client.lua and put in both of all of your sent script. Do any of you know why? Marty Link to comment
Anubhav Posted August 22, 2014 Share Posted August 22, 2014 Its client sided lol.. I am not sure about my if argument! Link to comment
SkatCh Posted August 22, 2014 Share Posted August 22, 2014 check this for more information : https://wiki.multitheftauto.com/wiki/SetTime Link to comment
Bonsai Posted August 22, 2014 Share Posted August 22, 2014 -- not sure L( function getMyTimer() local timer = getTime() if timer == 22,0 then addEventHandler("onClientRender", root, setMyTime) end end addEventHandler("onClientRender", root, getMyTimer) function setMyTime() setTime( 22, 0 ) end Why do you even suggest things if you have obviously no idea. Link to comment
marty000123 Posted August 22, 2014 Author Share Posted August 22, 2014 Thanks me4ever and anubhav, it worked! Link to comment
mohamed.kouki Posted September 3, 2023 Share Posted September 3, 2023 How did it work ? Link to comment
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