Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. So, is the text and image working now?
  2. addEvent ( "onZombieSpawn", true ) addEventHandler ( "onZombieSpawn", root, function ( ) outputChatBox ( "Element type: ".. tostring ( getElementType ( source ) ) ) createBlipAttachedTo ( source, 0 ) end )
  3. You can try to make it, if it doesn't work, then I can help you with it.
  4. Castillo

    Question ..

    Already explained here: viewtopic.php?f=13&t=45831
  5. That error doesn't make any sense, argument 5 is for height size.
  6. So, it's drawing the image, but not the country code?
  7. Are you sure that it's from dxDrawText that error? the argument 5 of dxDrawText is the height.
  8. Change where you set the flag to this: exports.scoreboard:addScoreboardColumn ( 'Home' ) function showcountry ( ) local flag = exports.admin:getPlayerCountry ( source ) or "N/A" if ( flag ) then setElementData ( source, "Home", { ":admin/client/images/flags/".. flag ..".png", flag } ) end end addEventHandler ( "onPlayerJoin", root, showcountry ) And on scoreboard: elseif column.name == "Home" then dxDrawImage( topX+theX, y+s(1), 16, 11, content [ 1 ], 0, 0, 0, cWhite, drawOverGUI ) dxDrawText ( tostring ( content [ 2 ] ), topX+theX + 5, y+s(1), 16, 11, cWhite, 1, "default", "right", "bottom", true, false, drawOverGUI )
  9. elseif column.name == "Home" then dxDrawImage( topX+theX, y+s(1), 16, 11, content, 0, 0, 0, cWhite, drawOverGUI ) dxDrawText ( topX+theX + 5, y+s(1), 16, 11, getElementData ( player, "country" ), cWhite, 1, "default", "right", "bottom", true, false, drawOverGUI ) Try it.
  10. Remove the scoreboard "country" column, use the same position of the image, but change the X position.
  11. Maybe the ACL "MapEditor" doesn't has access to "refreshResources"?
  12. https://wiki.multitheftauto.com/wiki/ACL
  13. No le veo nada malo, deberia funcionar. Aca funciona.
  14. Maybe the Admin resource doesn't has enough permissions to use the functions for mute, ban, kick.
  15. Despues de guiCreateWindow pone: guiSetVisible ( GUIEditor.window[1], false )
  16. Tried adding the resource to acl?
  17. You'll need to draw the text after the image on the scoreboard script, instead of adding country column too.
  18. bindKey guiGetVisible guiSetVisible
  19. Castillo

    Question

    If I'm right, replacing pickups is problematic, though, you can use the engine functions to replace them.
  20. Postea el codigo de script ( no en mediafire, postealo aca ), el contenido de ambos .lua.
  21. Esa IP es local, no es una IP publica. Busca tu IP publica en: myip.es
  22. Esa IP es local, no es publica. Yo probe el mismo script que puse aca en el link y funcionaba, osea que vos tocaste algo, no hay otra explicacion.
×
×
  • Create New...