.:HyPeX:. Posted March 26, 2014 Posted March 26, 2014 Well, i cant simply make it go away, only by doing /showhud inside the game.. function SpawnPlayerToLobby(player,cmd) if source then showPlayerHudComponent(source, "all", false) takeAllWeapons(source) local source = source if not isPedDead(source) then killPed(source) end spawnPlayer(source, 584.79998779297, -2015.4000244141, 1.3999999761581, 180) setPlayerTeam(source, Lobby) outputChatBox("#006677[bF3]: Type in /help to see all commands!", source,255,255,255,true) setElementData(source, "State", "Lobby") setCameraTarget(source, source) fadeCamera(source, true) end if isElement(player) and getElementType(player) == "player" then local player = player if not isPedDead(player) then killPed(player) end takeAllWeapons(player) spawnPlayer(player, 584.79998779297, -2015.4000244141, 1.3999999761581, 180) setPlayerTeam(player, Lobby) setElementData(player, "State", "Lobby") setCameraTarget(player,player) fadeCamera(player, true) outputChatBox("#006677[bF3]: Type in /cmd to see all commands!", player,255,255,255,true) end end addEventHandler("onPlayerLogin", getRootElement(), SpawnPlayerToLobby) addCommandHandler("Lobby", SpawnPlayerToLobby)
.:HyPeX:. Posted March 26, 2014 Author Posted March 26, 2014 Maybe it's being shown again by another script? No, i checked all over, i'm even setting it off on clientRender, it should atleast make some blurring.. EDIT: Just did it with onClientPreRender (And somehow it worked.)
Gallardo9944 Posted March 29, 2014 Posted March 29, 2014 Yes, onClientRender is a proper way. The explanation is following: GTA is showing its radar each time a player spawns, dies, or whatever. That means a constant hiding is needed.
.:HyPeX:. Posted March 29, 2014 Author Posted March 29, 2014 Yes, onClientRender is a proper way. The explanation is following: GTA is showing its radar each time a player spawns, dies, or whatever. That means a constant hiding is needed. Yeah, but it only worked with onClientPreRender, onClientRender did nothing.
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