i want to hide this
i have found this but i don’t know were i have to put it
-- Copyright © Vespura 2018
-- Edit it if you want, but don't re-release this without my permission, and never claim it to be yours!
------- Configurable options -------
-- set the opacity of the clouds
local cloudOpacity = 0.01 -- (default: 0.01)
-- setting this to false will NOT mute the sound as soon as the game loads
-- (you will hear background noises while on the loading screen, so not recommended)
local muteSound = true -- (default: true)
------- Code -------
-- Mutes or un-mutes the game's sound using a short fade in/out transition.
if state then
-- Runs the initial setup whenever the script is loaded.
-- Stopping the loading screen from automatically being dismissed.
-- Disable sound (if configured)
-- Switch out the player if it isn't already in a switch state.
if not IsPlayerSwitchInProgress() then
SwitchOutPlayer(PlayerPedId(), 0, 1)
-- Hide radar & HUD, set cloud opacity, and use a hacky way of removing third party resource HUD elements.
-- nice hack to 'hide' HUD elements from other resources/scripts. kinda buggy though.
SetDrawOrigin(0.0, 0.0, 0.0, 0)
-- Sometimes this gets called too early, but sometimes it's perfectly timed,
-- we need this to be as early as possible, without it being TOO early, it's a gamble!
-- In case it was called too early before, call it again just in case.
-- Wait for the switch cam to be in the sky in the 'waiting' state (5).
while GetPlayerSwitchState() ~= 5 do
-- Shut down the game's loading screen (this is NOT the NUI loading screen).
-- Shut down the NUI loading screen.
while not IsScreenFadedIn() do
local timer = GetGameTimer()
-- Re-enable the sound in case it was muted.
while true do
-- wait 5 seconds before starting the switch to the player
if GetGameTimer() - timer > 5000 then
-- Switch to the player.
-- Wait for the player switch to be completed (state 12).
while GetPlayerSwitchState() ~= 12 do
-- Stop the infinite loop.
-- Reset the draw origin, just in case (allowing HUD elements to re-appear correctly)