papam77 Posted April 28, 2013 Share Posted April 28, 2013 Hello, i have lobby but i wanna when player press F1 he will see lobby again if is ingame Here is part of code local Lobby ------------------------------------------------- -- Bind Key ------------------------------------------------- function bindTheKeys ( player, commandName ) bindKey ( player, "F1", "down", showLobby ) end ------------------------------------------------- -- Components ------------------------------------------------- showCursor ( true ) showChat ( true ) showPlayerHudComponent ( source, "ammo", false ) showPlayerHudComponent ( source, "weapon", false ) ------------------------------------------------- -- Background and Images ------------------------------------------------- addEventHandler("onClientResourceStart", resourceRoot, function() end ) addEventHandler("onClientRender", root, function() dxDrawImage(0, 0, 1920, 1080, "img/lobby-bg.png", 0, 0, 0, tocolor(255, 255, 255, 255), true) dxDrawText("Choose an arena", 2+160/2, 15, 160, 24, tocolor(255, 255, 255, 255), 3.00, "bankgothic", "left", "top", false, false, true, false, false) end ) But it doesn't work Link to comment
xXMADEXx Posted April 28, 2013 Share Posted April 28, 2013 Remove the function that "bindKey ( player, "F1", "down", showLobby )" is in, and replace with: bindKey ( "F1", "down", showLobby ) Link to comment
papam77 Posted April 28, 2013 Author Share Posted April 28, 2013 Doesn't work when i press f1 nothing happend Link to comment
iPrestege Posted April 28, 2013 Share Posted April 28, 2013 And where's the lobby ? image or The player hud i can't find where's it . Link to comment
MIKI785 Posted April 28, 2013 Share Posted April 28, 2013 If you're trying to copy FFS again you should at least learn some Lua... you post here help topics with every little thing, this won't get you anywhere. Copying won't get you anywhere anyway... Link to comment
papam77 Posted April 28, 2013 Author Share Posted April 28, 2013 If you're trying to copy FFS again you should at least learn some Lua... you post here help topics with every little thing, this won't get you anywhere. Copying won't get you anywhere anyway... I don't asked you what i am doing Link to comment
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