kopalov / GTAV-SH-Mod

The Savehouse Mod for GTA V
9 stars 4 forks source link

Add timer and screen fade-out for custom interior load #75

Closed kopalov closed 8 years ago

hennysmafter commented 8 years ago

There might be a problem with the wait() function according to: https://www.google.lu/?gws_rd=cr&ei=TllBVpOgEcmnsgH7pZ7wCQ#q=lua%20wait I created a wait function but this makes the game freeze probably because we are using wait() all over the script and I haven't disabled all of them for checking this function so we can still look into this.

function wait(seconds)
    local _start = os.time()
    local _end = _start+seconds
    while (_end ~= os.time()) do
    end
end

The following items did not work for me!

ENTITY.SET_ENTITY_MAX_SPEED(PLAYER.PLAYER_PED_ID(),0)    
ENTITY.SET_ENTITY_HAS_GRAVITY(PLAYER.PLAYER_PED_ID(),false)
ENTITY.SET_ENTITY_HAS_GRAVITY(PLAYER.PLAYER_PED_ID(),true)

Another solution which might be a very elegant one is to load the GTA 5 Garage Loading Screen it is a nice room with no objects so easy to load! And while the player is in the room it loads the custom interiors. The coords for this area are: 405.936,-954.091,-98.004