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 ) Failure is simply an opportunity to begin again more intelligently - Henry Ford
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 See my some resources: Skin shop: https://community.multitheftauto.com/in ... ls&id=8008 Note script: https://community.multitheftauto.com/in ... ls&id=8009 Rules Panel: https://community.multitheftauto.com/in ... ls&id=8246 Random Money: https://community.multitheftauto.com/in ... ls&id=8718
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! See my some resources: Skin shop: https://community.multitheftauto.com/in ... ls&id=8008 Note script: https://community.multitheftauto.com/in ... ls&id=8009 Rules Panel: https://community.multitheftauto.com/in ... ls&id=8246 Random Money: https://community.multitheftauto.com/in ... ls&id=8718
SkatCh Posted August 22, 2014 Posted August 22, 2014 check this for more information : https://wiki.multitheftauto.com/wiki/SetTime Failure is simply an opportunity to begin again more intelligently - Henry Ford
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