![]() They should’ve made it hidden when DisplayHud(false) is used and/or when IsPlayerSwitchActive() is true, which is extremely easy to do but they didn’t feel like making it compatible with other resources, so neither do I. ![]() I won’t be adding an event for every single third party resource out there so that they can hide their HUD’s. Reset the draw origin, just in case (allowing HUD elements to re-appear correctly)Įasiest thing would just be to make sure your other scripts don’t draw when IsPlayerSwitchActive() returns true. Wait for the player switch to be completed (state 12). wait 5 seconds before starting the switch to the player Re-enable the sound in case it was muted. Shut down the game's loading screen (this is NOT the NUI loading screen). Wait for the switch cam to be in the sky in the 'waiting' state (5). In case it was called too early before, call it again just in case. we need this to be as early as possible, without it being TOO early, it's a gamble! ![]() Sometimes this gets called too early, but sometimes it's perfectly timed, nice hack to 'hide' HUD elements from other resources/scripts. Hide radar & HUD, set cloud opacity, and use a hacky way of removing third party resource HUD elements. Switch out the player if it isn't already in a switch state. Stopping the loading screen from automatically being dismissed. Runs the initial setup whenever the script is loaded. Mutes or un-mutes the game's sound using a short fade in/out transition. (you will hear background noises while on the loading screen, so not recommended) setting this to false will NOT mute the sound as soon as the game loads Local cloudOpacity = 0.01 - (default: 0.01) Edit it if you want, but don't re-release this without my permission, and never claim it to be yours! TriggerEvent(‘esx_status:setDisplay’, 0.0) - Copyright © Vespura 2018 I have found this but i don’t know were i have to put it ![]() Thanks to for helping me with the switch in native. Or, if you just found the issue but don’t know how to solve it yourself, create an Issue on the GitHub page and make sure to provide as much information as possible. It is specified similarly to uipage using loadscreen in the resource manifest: loadscreen 'load.html' file 'load.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |