Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. Maybe you could use "missiontimer" resource, it should do what you want, it has exported functions, take a look at them. P.S: The resource comes with MTA when you download it.
  2. Well, here's how I do it: addEventHandler("onClientGUIScroll",root, function () if source == redBar or source == greenBar or source == blueBar then guiLabelSetColor(labelColor,(guiScrollBarGetScrollPosition(redBar)*2.55),(guiScrollBarGetScrollPosition(greenBar)*2.55),(guiScrollBarGetScrollPosition(blueBar)*2.55)) end end)
  3. Meh, creating a R, G, B scroll bar is pretty easy
  4. Maybe nobody understood you? maybe they won't reply because they don't know what are you talking about.
  5. Castillo

    FR Gui...

    That's obiously, because you are creating the icons client-side, and if you wanted others to see them it should be server-side. --client side function applyAttachment(leaf) if type(leaf) ~= 'table' then leaf = getSelectedGridListLeaf(wndIcon, 'iconlist') if not leaf then return end end triggerServerEvent("createPickup",g_Me,g_Me,leaf.id) end --server side local pickup = {} addEvent("createPickup",true) addEventHandler("createPickup",root, function (client, icon) if isElement(pickup[client]) then destroyElement(pickup[client]) end local x, y, z = getElementPosition(client) pickup[client] = createPickup(x, y, z, 3, tonumber(icon)) if pickup[client] then attachElements(pickup[client], client, 0, 0, 1.5) end end) addEventHandler("onPlayerQuit",root, function () if isElement(pickup[source]) then destroyElement(pickup[source]) end end) Try it, should work (not tested).
  6. 1: I want to be the U.S president. 2: I want 10 millon dollars. 3: I want a big mansion. P.S: I know I sound a little rude here, don't mean to. You can't come here and request things, in this forum we barely accept requests, you should ask how to do it instead. If you want to learn how to script, then go here: https://wiki.multitheftauto.com/wiki/Scr ... troduction https://wiki.multitheftauto.com/wiki/Int ... ng_the_GUI
  7. Do you know from when is the last post? as I read is from 2008!, you are bumping old topics.
  8. https://wiki.multitheftauto.com/wiki/Modules/SebasIRC P.S: This resource does what you want (if i'm right): https://community.multitheftauto.com/index.php?p= ... ils&id=731
  9. Yeah, I think it was toggleControl not setControlState .
  10. It will be possible in MTA 1.1.
  11. Thanks? for what? You won't get help to fix something that you stole from another server.
  12. "Experienced MTA forum member"? well, there are many "Experienced" member's which their posts are just trolling or non sense posts.
  13. , y ami ni me gusta race, pero cuando me compran un script de race tengo que editar cosas asi.
  14. Yeah, yeah, and i'm stupid, right? you stole it.
  15. Nop, mira en: racevoting_server.lua y vas a ver que dice "Play again", "Choose next map", etc. Y en modes/base.lua vas a encontrar "Next map starts in".
  16. Would you stop stealing scripts?! this is stolen from FFS racing server.
  17. Note from the wiki: It should also be noted that canceling this event has no effect. Cancel the client-side event onClientPlayerDamage instead.
  18. Fijate en el resource "race", ahi esta eso de "Play again", "Choose next map" (que yo sepa), y lo de "Vote for next map starts in" tambien esta en race.
  19. https://wiki.multitheftauto.com/wiki/SetControlState set "enter_exit" to false.
  20. Copy again the code, I did a mistake, used "AccountData" but it was "accountData", typos.
  21. Get the latest resources: http://code.google.com/p/mtasa-resources/downloads/list
×
×
  • Create New...