scarecr0w Posted December 23, 2018 Share Posted December 23, 2018 Hey! I am currently facing a problem with default lights. My question is if there is any way to turn off the day/night light cycle (If possible only to player, cj_ped_torso). My problem is that I have added a custom object and it doesn't has any light therefore it looks very weird. https://i.imgur.com/NbvZRlv.jpg Day / Night. The custom object its the head attached as you can see it doesn't change. Thanks in advance! Link to comment
Sorata_Kanda Posted December 23, 2018 Share Posted December 23, 2018 (edited) If you want to change the GTA time, you can simply use bool setTime ( int time, int minutes ) In case you want to freeze the time, you need to attach it to onClientRender like this: addEventHandler('onClientRender', root, function () setTime( hours, minutes ) -- Please replace 'hours' and 'minutes' with the value you want the time to freeze in. end ) If you just want a Day cycle, you probably have to use if-checks to the point when the time should be changed back to noon or morning. Edited December 23, 2018 by Sorata_Kanda Link to comment
scarecr0w Posted December 23, 2018 Author Share Posted December 23, 2018 Hey thanks for the answer! But thats not what I was talking about, I want to remove/change the day/night light from a specific object. 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