Jump to content

Search the Community

Showing results for tags 'bindkey'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Multi Theft Auto: San Andreas 1.x
    • Support for MTA:SA 1.x
    • User Guides
    • Open Source Contributors
    • Suggestions
    • Ban appeals
  • General MTA
    • News
    • Media
    • Site/Forum/Discord/Mantis/Wiki related
    • MTA Chat
    • Other languages
  • MTA Community
    • Scripting
    • Maps
    • Resources
    • Other Creations & GTA modding
    • Competitive gameplay
    • Servers
  • Other
    • General
    • Multi Theft Auto 0.5r2
    • Third party GTA mods
  • Archive
    • Archived Items
    • Trash

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


About Me


Gang


Location


Occupation


Interests

Found 17 results

  1. What's wrong? scirpt: plalyer-> seat to vehicle-> pres space and draw handbrake image debugscript errors :((( code: function hand ( thePlayer ) local theVehicle = getPedOccupiedVehicle ( thePlayer ) if theVehicle then dxDrawImage(200,110,100,100,"hand.png", 255,255,255,true, theVehicle, thePlayer) end end bindKey("space","down", hand)
  2. redditing

    BindKey

    Is there a function similar to ToogleControl but with Binds? I mean, there is such a function attached to BindKey (under the "k" key), and I would like to press the "k" function just like in ToggleControl, where we clicked eg left mouse button to shoot
  3. Eu só queria saber como eu faço pra trocar essa função de comando, para uma de tecla. Ao invés de ter que digitar o comando, eu queria que apenas pressionasse "F"
  4. I am a beginner regarding the Lua language, the problem is very simple actually when I enter the server the panel to change the weather overrides the login panel I wanted to make it be activated only by bind ie when starting the server it would be set to off and pressing bind appears .. GUIEditor = { button = {}, label = {} } addEventHandler('onClientResourceStart', resourceRoot, function() wnd = guiCreateWindow(812, 300, 301, 423, "Painel Clima", false, wnd) guiWindowSetSizable(wnd, false) guiSetAlpha(wnd, 0.97) guiSetProperty(wnd, "CaptionCol
  5. Tenho 2 scripts, um de animação por binds e outro de assaltos, queria saber como faço para não cancelar a animação do roubo e fazer o jogador continuar fazendo o roubo, para ele não sair do freeze do roubo e pegar o dinheiro fora do local já, tentei com flags e getElementData e nada. Animação function animcruzabraco () if getElementData ( localPlayer, "cruzabracodt" ) == false then setElementData(localPlayer, "cruzabracodt", true) setElementFrozen ( localPlayer, true ) triggerServerEvent("animcruzabraco",localPlayer) else setElementFrozen ( localPlayer, false ) setElementD
  6. PL: Nie mogę używać wiążącego klucza na literę k aby silnik sie wyłączał. PL: Nie moge ustawić klawisza powiązania , ABY mozna bylo wykonać dziesięć Skrypt Za Pomocą funkcji „K” turnEngine (odtwarzacz) Lokalny Samochód = getPedOccupiedVehicle (odtwarzacz) if (Samochód i getVehicleController (Samochód) == gracz), A następnie ustawVehicleEngineState (Samochód, (not getVehicleEngineState (car))) if (getVehicleEngineState (car)) następnie outputChatBox („Silnik: Twój silnik wyposażony wyposażony.”, player, 0, 255, 0) el
  7. Estava fazendo um sistema que em uma parte dele seria preciso utilizar uma bind dentro de um marker para criar um veiculo. Fiz tudo certo, porém, fiz no client-side e acabei sabendo que veículos criados no client-side serviriam apenas para "enfeite", tentei então aprender a como fazer bind no server-side, li na wiki do mta e vi videos relacionados a ela, mas não consegui fazer da maneira correta. Ainda estou confuso com a função bindKey, então se tiver alguém que possa me explicar um pouco dela ou pelo menos me ajudar dizendo o que esta de errado no código, ficarei grato. local g1 = c
  8. Estou fazendo um sistema que ao passar pelo marker e apertar "e", spawnaria um veiculo, porem esta spawnando 2 veiculos (quando aperta e quando solta a tecla), mas queria que spawnasse apenas quando apertasse. O código esta assim: local g1 = createMarker (1517.796, -694.59, 92.00, "cylinder", 3.0, 184,0,0, 150) addEventHandler ("onClientMarkerHit", g1, function() addEventHandler ("onClientKey", root, function (button, press) if isElementWithinMarker (localPlayer, g1) then if button == "e" then createVehicle ( 402, 1517.172, -690.4, 94.75, 0, 0, 100) end end end ) end
  9. Client.lua: function processLockUnlock(vehicle) if vehicle then local vehicleID = tonumber(getElementData(vehicle, "veh:id")) or -1 local vehFaction = tonumber(getElementData(vehicle, "veh:faction")) or 0 local vehOwner = tonumber(getElementData(vehicle, "veh:owner")) or -1 local vehJobID = tonumber(getElementData(vehicle, "veh:jobvehID")) or -1 local locked = isVehicleLocked(vehicle) local vehID = getElementModel(vehicle) local vehName = getVehicleRealName(vehID) if isPedInVehicle(localPlayer) then playSounds("lockin") else playSounds("lockout")
  10. como eu ativo meu teamsay para as team? por que quando eu entro na team e digito cai no chat say não no teamsay.
  11. Gente como eu privaria isso para 1 grupo só? addCommandHandler("fogo", function(lp) local x,y,z=getElementPosition(lp) local Rocket=createObject(3790,x,y,z-1.5,0,90,0) setTimer(function() moveObject(Rocket,500, x+math.random(0,5), y+math.random(0,5), z+math.random(20,50), 0, 0, math.random(0,200)) triggerClientEvent(root, "startSilvesterRocket", root, x, y, z) setTimer(function() local xr,yr,zr=getElementPosition(Rocket) createExplosion(xr,yr,zr,9,lp) createExplosion(xr,yr,zr,4,lp) destroyElement(Rocket) end,500,1) end,2000,1) end)
  12. function rights () outputChatBox("", getRootElement(), 0, 255, 0, false) end addEventHandler("onResourceStart",getResourceRootElement(getThisResource()),rights) function permission (source) if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Staff")) or isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Moderator")) then triggerClientEvent(source, "openAdmin", getRootElement()) end end addCommandHandler("mod", permission) function info (player) info = {} local user = getPlayerFromName(player) if not isGuestAccount(getPlayerAcc
  13. I have been trying to bindkeys to a command clientside and save them inside a xml file. But the mta binding cache is stacking up. Keys: 'x', 'u', 'x' See screenshot bellow. The problem shows up when you edit the bindkey in the settings menu and load the xml file after saving it. To use the bindkeys, you have to bind it with any key on your keyboard. To know which bindkeys are bound to a command with your previous visit, you have to bind any key of your keyboard to that command in order to use: getBoundKeys / getKeyBoundToCommand If you use unbindKey
  14. Greetings, i am making a new script to chatBox, but i have some problem making a script to binds with my new chatBox. The user when want make the bind (example: /bind 4 drawLineInScreen colorR colorG colorB) i take the string drawLineInScreen, but when i want make te bind using bindKey, there are 2 options. option 1 bool bindKey ( player thePlayer, string key, string keyState, function handlerFunction, [ var arguments, ... ] ) option 2 bool bindKey ( player thePlayer, string key, string keyState, string commandName, [ string arguments ] ) In option 1 i ca
  15. Hey I need some help, regarding "bindKey" so what I basicly want to do is check if the player is pressing down a button, and when he does, I want to return a boolean value. function keyInput(player, key, keyState) if(keyState == "down") then end outputChatBox("Pressing: " .. key) end function bindKeysWhenPlayerJoin() bindKey(source, "lalt", "down", keyInput) end addEventHandler("onPlayerJoin", getRootElement(), bindKeysWhenPlayerJoin) So basicly I have the basics down, when the player joins the server the keys will bind, and when I press "lalt" then it gets printed ou
  16. análisis de la función () Ventana = guiCreateWindow (207, 164, 442, 357, "Panel De Mods Beta | Servidor", false) guiWindowSetSizable (Ventana, falsa) guiSetVisible (Ventana, falsa) ShowCursor (falso) armaon = guiCreateButton (9, 69, 39, 19, "On", falsa, ventana) guiSetProperty (armaon, "NormalTextColour", "FFAAAAAA") armaoff = guiCreateButton (58, 69, 39, 19, "Off", falsa, Ventana) guiSetProperty (armaoff, "NormalTextColour", "FFAAAAAA") labe = guiCreateLabel (31, 44, 43, 15, "Armas:", falsa, ventan
  17. Una pregunta un poca tonta, pero en fin. Mi problema es éste: function key() setElementPosition(theObject, x+1,y,z) end for i,v in ipairs(getElementsByType("player")) do bindKey(v,"w","down",key) end El objeto se mueve hacia adelante, pero solo una vez, o sea, preciono 'w' una vez y se mueve, pero si preciono la tecla de nuevo no pasa nada, no sé si es porque estoy haciendo un for para sacar al jugador, pero si pongo ' source ' me da error.
×
×
  • Create New...