Feche1320 Posted February 1, 2019 Posted February 1, 2019 I can only set once setTime clientside, if I want to change it again it doesn't have effect and the time stays the same Is this a known bug? thanks www.host-ar.com.ar
Moderators IIYAMA Posted February 1, 2019 Moderators Posted February 1, 2019 Not that I know of. Just make sure that you test it in an empty environment without gamemodes running. Do you want to improve your Lua programming skills and make less mistakes? Start with Lua Language Server! Useful functions 3x Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
Peti Posted February 2, 2019 Posted February 2, 2019 (edited) We are going to need your code to give a proper answer Edited February 2, 2019 by Peti Scripts 1. Mission: Pizza delivery [OPEN SOURCE]
Feche1320 Posted February 3, 2019 Author Posted February 3, 2019 (edited) I have been making some tests since I still have this issue, added an IF statement to check if time was set or not since the Wiki says that it returns true if set succesfully, false otherwise: Quote Returns true if the new time was successfully set, false otherwise. This is my current code with the IF statement: if setTime(22, 0) then setMinuteDuration(600000) -- 10 minutes = 1 ingame minute outputDebugString("[RACE] Time set") else outputDebugString("[RACE] Could not set game time") end And this is what I got: What could be the reason of setTime() returning false? Thanks EDIT: Okay so nevermind, I'm stupid.. I had this hidden somewhere _setTime = setTime function setTime() end Can be closed, thanks for your help! Edited February 3, 2019 by Feche1320 www.host-ar.com.ar
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