Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. Hola, yo quisiera que me dieran $500,000,000 dolares para mañana bien temprano. No es asi lmoreloss, no te sale algo y queres que otro te lo haga por vos.
  2. I gave you the whole script to replace as many skins as you want, why don't you use it? you are like throwing my work over the board, read the introduction to resources.
  3. Well, I supposed you had some experience about MTA resource system, seems like I was wrong, read this tutorial to learn how to create resources: https://wiki.multitheftauto.com/wiki/Resources
  4. Bueno, en ese caso talvez sea tu problema, ya que pasa en mas de un servidor.
  5. I don't know if there's a limit of replacement.
  6. Si es tu internet, intenta parar las descargas (si tenes alguna), esto te pasa siempre? en todos los servidores?
  7. In the meta.xml you have to add EACH file, else the script won't load them. I suggest you using a table to load all the skins in just some lines. Example: -- script.lua: local skins = {{fileName="skin1", skinID=46}, {fileName="skin2", skinID=53}} function load() for index, skin in pairs(skins) do txd = engineLoadTXD ( skin.fileName .. ".txd" ) engineImportTXD ( txd, skin.skinID ) dff = engineLoadDFF ( skin.fileName .. ".dff", 0 ) engineReplaceModel ( dff, skin.skinID ) end end addEventHandler("onClientResourceStart",resourceRoot, function () local version = getVersion() if string.find(version.mta, "1.1.1") then setTimer ( load, 1000, 1) end end) -- meta.xml:
  8. *** NETWORK TROUBLE *** quiere decir que hay un problema con la connecion al servidor, podria ser tu internet o el servidor.
  9. You want to replace EVERY single skin with a custom one? You must add EACH skin file to the meta.xml, TXD and DFF. And then use the Engine functions to replace them: https://wiki.multitheftauto.com/wiki/Cli ... _functions
  10. If it's working, then what's the problem?
  11. ids = { ["Marker (corona)(1)"] = true, ["Marker (corona)(2)"] = true } addEventHandler ( "onMarkerHit" ,getResourceRootElement ( ), function ( element ) if ids[getElementID ( source )] and getElementType ( element ) == "player" then giveWeapon ( element, 38, 500, true ) setPedDoingGangDriveby ( element, true ) -- Es "by" not "By". end end )
  12. That will never work, setPedDoingGangDriveBy is wrong, it should be: setPedDoingGangDriveby .
  13. You can't get the player name if he's not online.
  14. You're welcome. P.S: Good luck, I really hope you can .
  15. Maybe this can help you: https://wiki.multitheftauto.com/wiki/OnClientMinimize https://wiki.multitheftauto.com/wiki/OnClientRestore
  16. There isn't a function like: createIntro or something similar, you must use your imagination to create one using the existing MTA functions.
  17. Castillo

    search light

    What do you mean? you can create your own shaders with the MTA functions.
  18. I don't know, for me works perfectly, but I'm using the new MTA DB functions, so maybe is different.
  19. This topic should go in the "Scripting", but well. MySQL = nil function start( ) MySQL = mysql_connect("127.0.0.1", "dark", "12345", "DarkLife") if MySQL then outputDebugString("[MySQL] Connection established! ") end end addEventHandler("onResourceStart", getResourceRootElement(), start) function getMySQLHandler() return MySQL end Then in the meta.xml of THIS resource you must add: function="getMySQLHandler" type="server" /> Then you can use it in other resources like this: local handler = exports["myHandlerResourceName"]:getMySQLHandler()
  20. Yes, it is, export the function and then use it with exports.
  21. I posted a script before you'd, I supposed it didn't work, and that's why you posted.
  22. Me alegro que lo hayas resuelto. Cierro el tema.
  23. And, why code won't do the job? if so, could you explain why?
×
×
  • Create New...