Jump to content

bindKey


papam77

Recommended Posts

Posted

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

Posted

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

Posted
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 ;)

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