Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. That script works perfectly, I do /grav and it works.
  2. First, the sound will never stop because you set it to loop, second, live streams doesn't has length, so you can't really know when it's over. And third, the script doesn't output any error.
  3. I think he's talking about the resource that comes with MTA called "interiors", if so, then just copy one current interiors and change the teleport details.
  4. Works perfectly, I even executed setRandomMusic() alone and it also works fine.
  5. Post your WHOLE script, and I mean EVERYTHING.
  6. I get no error here, maybe is another line?
  7. That's too f*** wrong: exports["scoreboard"]:scoreboardAddColumn("ACL")
  8. Works perfect.. function setRandomMusic () local theSound = randoms[math.random(#randoms)] currentSound = playSound(theSound, true) guiSetText(music_name, tostring(name)) end I removed that timer because it was useless and wrong used.
  9. Post your whole script.
  10. Que queres decir? no te entiendo.
  11. local theSound = randoms[math.random(#randoms)]
  12. Fijate si en el meta.xml dice type="client", si es asi cambialo a type="server".
  13. Why do you need a for-loop? function onClientChangeHisNick() if isPlayerMuted ( source ) then outputChatBox ( "#FF0000You're not allowed to change you're nick , while you're muted!", source, 255, 255, 255, true ) cancelEvent() else outputChatBox ( "#99FF00Nick successfully changed!", source, 255, 255, 255, true ) end end addEventHandler ( "onPlayerChangeNick", getRootElement(), onClientChangeHisNick )
  14. You'll have to trigger back to the client with triggerClientEvent
  15. Why don't you check the wiki page for that function? -- client side: triggerServerEvent("getText",getLocalPlayer(),url) -- server side: function getSiteText(site) local thetext = MySQL_GetString("web", "Text", "Site='"..site.."'") return thetext end addEvent("getText",true) addEventHandler("getText",getRootElement(),getSiteText)
  16. You can't compile a script that is enconded with UTF-8, you must change the encoding to UTF-8 without BOM.
  17. You can't do that, you must learn Lua scripting to create scripts for MTA. https://wiki.multitheftauto.com/wiki/Scr ... troduction https://wiki.multitheftauto.com/wiki/Int ... ng_the_GUI
  18. Please everyone stop with the negative comments, it's his time, he can do whatever he want's to, if you don't like it and you want to use another program, just do it but maybe other's doesn't like the same as you do. Next negative comment will be removed to avoid starting a flame war.
  19. Vehicle mod: https://community.multitheftauto.com/index.php?p= ... ls&id=3569
  20. Are you sure that it's the correct vehicle? maybe you're wrong.
  21. @joedajoester: What has that resource to do with his question? it's not what he's looking for.
  22. I use TXD Workshop to edit the .TXD files (textures). You can export it as a image then import it back.
  23. My bad, I forgot about something, copy the script again. P.S: It's client side.
  24. Castillo

    staff

    You haven't renamed the ACL groups, did you? I don't know why shouldn't it work for you too.
×
×
  • Create New...