Jump to content

Radar not dissapearing?


.:HyPeX:.

Recommended Posts

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) 

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...