Jump to content

[Help] Turn off day/night cycle light


scarecr0w

Recommended Posts

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

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 by Sorata_Kanda
Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...