marty000123 Posted August 22, 2014 Posted August 22, 2014 Yo I'm searching a script to freeze the time at 22:00. Can anyone help me please? Marty
SkatCh Posted August 22, 2014 Posted August 22, 2014 here you go you can use this simple script : addEventHandler( 'onClientRender', getRootElement( ), function( ) setTime( 22, 0 ) <----- Put time here end )
Anubhav Posted August 22, 2014 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
Scripting Moderators Sarrum Posted August 22, 2014 Scripting Moderators Posted August 22, 2014 setMinuteDuration
marty000123 Posted August 22, 2014 Author 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
Anubhav Posted August 22, 2014 Posted August 22, 2014 Its client sided lol.. I am not sure about my if argument!
SkatCh Posted August 22, 2014 Posted August 22, 2014 check this for more information : https://wiki.multitheftauto.com/wiki/SetTime
Bonsai Posted August 22, 2014 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.
marty000123 Posted August 22, 2014 Author Posted August 22, 2014 Thanks me4ever and anubhav, it worked!
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