Jump to content

Aibo

Retired Staff
  • Posts

    1,105
  • Joined

  • Last visited

Everything posted by Aibo

  1. see here: viewtopic.php?p=371531#p371531 and here: viewtopic.php?f=104&t=35933
  2. 1a. iirc, MTA allows color-codes names in names by default (at least it did) 1b. for nametags you'll have to edit race/nametags.lua, and make dx text with color codes support. 2. you'll need to edit race resource also (race_client.lua to be precise) 3. same as 2, edit race_client.lua
  3. stop event propagation (as mentioned by BinSlayer1), or check the source in your handler function(s) (i do that to get away with single click handler function for all elements).
  4. i'd just check the source element and do stuff accordingly.
  5. well some handler is probably messed up, attached to some parent element or something. its hard to figure out anything when all you show are some random 5-line parts.
  6. so where are the event handlers?
  7. Aibo

    Some skins

    actually im pretty happy with current menu, plain old Helvetica bold can never be wrong updated lighter black skin: * fixed titlebar image mapping * added separate images for tabs
  8. Aibo

    Some skins

    yep, black one is somewhat too dark, made a bit "brighter" version:
  9. use /debugscript 3 it is possible it stops on createLoginWindow() function. or does not run at all, depends on debug output.
  10. for those who may be interested (click on an image to download): if the links above are dead: http://mta.cgx.ru/up/Black.zip http://mta.cgx.ru/up/Orange.zip
  11. и что мешает здесь сделать так же, только с элементами?
  12. Aibo

    Trigger problem .

    player joins the server, which triggers onPlayerJoin server event, which triggers your client events (why there are 4 of them anyway). is it really necesarry? you got onClientResourceStart client event if you want to do client stuff on player join. PS: i dont see "ruleOnJoin" event added anywhere in the client script.
  13. Aibo

    setTimer problems

    read about setTimer on the wiki. function parameters must go after timer parameters, like: setTimer(setPedAnimation, 5000, 1, carla)
  14. this is your third topic about the same issue. please stick to the ones you've already created.
  15. look at syntax highlight in your code. engineLoadDff is not a valid MTA function, but engineLoadDFF is.
  16. 1.png? did you put your image file in meta.xml as a script file?
  17. 1. markerPassing is not declared anywhere as a table. 2. on line 5 its missing a letter: markerPssing.
  18. Aibo

    Matrix cams

    matrixCams is a table, not a function, you can't call it with a timer. JR10: you haven't copied the full code in your post, missed the "local matrixCams = {" declaration.
  19. he already did, i'm on it, just haven't replied yet :3
  20. you can use onPlayerChat event to check for commands and execute those you already have added. somthing like this: function retroCommands(text) if text:find("!", 1, 1) then -- check if text starts with ! local command = gettok(text, 1, 32):sub(2) -- get command name without ! if #command > 0 then local arguments = text:sub(#command+3) -- separate command from arguments (if any) -- you can do it other way: = text:gsub("!"..command, "") executeCommandHandler(command, source, arguments) -- your resource needs access to executeCommandHandler end end end addEventHandler("onPlayerChat", getRootElement(), retroCommands) and you may want to cancelEvent() to hide the command input. just note that if you don't cancel, chat output will show after the command is executed.
  21. Aibo

    Help At gui object

    1. because now you got too many ends. 2. also "source" in your function is a button state, because you overwrite the default source. i dont know how you expect button state (or gui element for that matter) to be the source of an event for the server. 3. TIGGER? tiggerServerEvent? 4. your event arguments for triggerServerEvent are wrong anyway. 5. you are trying to show a TABLE with guiSetVisible (GUIEditor_Window,true), not gonna work. 7. you dont need to put source in server arguments, source is always there. if the event is triggered properly, source will be the player. 8. you're using same names for functions and objects on the server. again, not gonna work. 9. read wiki, please: onClientGUIClick, and all the rest GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Memo = {} localPlayer = getLocalPlayer() GUIEditor_Window[1] = guiCreateWindow(950,290,310,199,"Members Commands by Maria",false) guiWindowSetMovable(GUIEditor_Window[1],false) guiWindowSetSizable(GUIEditor_Window[1],false) GUIEditor_Button[1] = guiCreateButton(9,28,75,22,"Turtle",false,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(9,140,75,22,"Love",false,GUIEditor_Window[1]) GUIEditor_Button[3] = guiCreateButton(9,112,75,22,"Money",false,GUIEditor_Window[1]) GUIEditor_Button[4] = guiCreateButton(9,84,75,22,"Ship",false,GUIEditor_Window[1]) GUIEditor_Button[5] = guiCreateButton(9,56,75,22,"Shark",false,GUIEditor_Window[1]) GUIEditor_Button[6] = guiCreateButton(9,168,292,22,"Reset",false,GUIEditor_Window[1]) GUIEditor_Memo[1] = guiCreateMemo(89,27,208,135,"*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-\nCommands Member\n\n* Please don't abuse of any object\n\n* Any bugs tell for one H-Admin\n\n*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-",false,GUIEditor_Window[1]) function show(source) guiSetVisible (GUIEditor_Window[1],true) showCursor(true) end addCommandHandler("open",show) function buttons(button, state) if (source == GUIEditor_Button[1]) then triggerServerEvent("turtle", localPlayer, localPlayer) elseif (source == GUIEditor_Button[2]) then triggerServerEvent("love", localPlayer, localPlayer) elseif (source == GUIEditor_Button[3]) then triggerServerEvent("money", localPlayer, localPlayer) elseif (source == GUIEditor_Button[4]) then triggerServerEvent("ship", localPlayer, localPlayer) elseif (source == GUIEditor_Button[5]) then triggerServerEvent("shark", localPlayer, localPlayer) elseif (source == GUIEditor_Button[6]) then triggerServerEvent("reset", localPlayer, localPlayer) end end addEventHandler("onClientGUIClick",getRootElement(),buttons) PS: indentation is when each code block (functions/conditions/loops/etc) are visually indented (spaces or tabs at line start), so you can see when the block starts and where it ends, and what other blocks are in it. something like that.
  22. Aibo

    Help At gui object

    http://en.wikipedia.org/wiki/Indent_style
×
×
  • Create New...