Snovie 2 Report post Posted May 28, 2019 Hello! Is it possible to add a server time/clock in-game that indicates the time of the server? Quote Share this post Link to post Share on other sites
champ 147 Report post Posted May 28, 2019 (edited) Yes, it is. Reference: https://www.lua.org/pil/22.1.html get_local_time = get_local_time or function() return os.date("Current time: %X") end print(get_local_time()) I'm not sure what lua version top server files run on but I assume it should work, you've got to replace the print statement though with say SystemNotice(role, get_local_time()) Edited May 28, 2019 by patrick13 Quote Share this post Link to post Share on other sites
Snovie 2 Report post Posted May 28, 2019 5 minutes ago, patrick13 said: Yes, it is. Reference: https://www.lua.org/pil/22.1.html get_local_time = get_local_time or function() return os.date("Current time: %X") end print(get_local_time()) I'm not sure what lua version top server files run on but I assume it should work, you've got to replace the print statement though with say SystemNotice(role, get_local_time()) Wait, i mean as its displayed on top of the screen itself as of all the time, like top right next to the map itself, and will tick automaticly (kind of like a mod) Quote Share this post Link to post Share on other sites
Eviles 179 Report post Posted May 28, 2019 Hello @Snovie! I think for doing that you must edit game.exe or src and also edit UI in order to display at client. Thought lua is possible doing a ads system, something as like @patrick13 showed. Quote Share this post Link to post Share on other sites
Snovie 2 Report post Posted May 28, 2019 30 minutes ago, Satan said: Hello @Snovie! I think for doing that you must edit game.exe or src and also edit UI in order to display at client. Thought lua is possible doing a ads system, something as like @patrick13 showed. Not possible to put a Client MOD like v3ctor has added for Discord on it? Quote Share this post Link to post Share on other sites
Eviles 179 Report post Posted May 28, 2019 1 hour ago, Snovie said: Not possible to put a Client MOD like v3ctor has added for Discord on it? Ask if he can do such. Quote Share this post Link to post Share on other sites
Snovie 2 Report post Posted May 28, 2019 @V3ct0r You can make such mod? Quote Share this post Link to post Share on other sites
champ 147 Report post Posted May 29, 2019 Oh sorry I misunderstood the question. I reckon it would require edits on both client and server considering that you'd prefer to control it via server. Quote Share this post Link to post Share on other sites