Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. Do you mind telling us the name?
  2. Some functions/events are client or server side only, like all GUI/DX drawing functions are client side only, you can't use them server side.
  3. What game mode are you using?
  4. Castillo

    getUnbanTime

    function test ( ) if ( not ban ) then ban = addBan ( "123.124.124.123", nil, nil, root, "nab", 60 ) end local timeLeft = ( getBanTime ( ban ) + getUnbanTime ( ban ) - getRealTime ( ).timestamp ) local dateLeft = getRealTime ( timeLeft ) if ( dateLeft and type ( dateLeft ) == "table" ) then outputChatBox ( tostring ( dateLeft.second ) ) end end addCommandHandler ( "testja", test ) Try that.
  5. Here you got some tutorials: viewforum.php?f=148
  6. "robbed" is nowhere defined, that code doesn't make any sense.
  7. Obviously to ask for help here?
  8. Let's say, do you have any idea on how to get the content of a XML file using Lua functions?
  9. Well, nobody's going to do anything for you if you don't at least try and show what you tried, then we can try to help you.
  10. Use the function: createRadarArea
  11. Because that's wrong, you are looping all the gui buttons. addEventHandler ( "onClientMouseEnter", guiRoot, function ( ) if ( getElementType ( source ) == "gui-button" ) then playSoundFrontEnd ( 5 ) end end )
  12. On map editor, when you click on "select world object" button, it'll tell you the LOD too.
  13. You must get the model and remove it with removeWorldModel.
  14. It's the LOD of the trees, you must remove it with removeWorldModel as well.
  15. Do you mean the tree? if so, that's just an object.
  16. GTA SA doesn't use shaders if I'm right.
  17. Well, do you have any idea on how XML works at all?
  18. To get all the content of the XML use: xmlNodeGetChildren Then use the page name as index for the table, and use the text as value, e.g: -- Global: pages = { } --Inside function: pages [ page ] = text
  19. local spawnX, spawnY, spawnZ = 2025.4877929688, -1423.0218505859, 16.9921875 function joinHandler() spawnPlayer(source, spawnX, spawnY, spawnZ) fadeCamera(source, true) setCameraTarget(source, source) outputChatBox("Bienvenido Al Servidor Lee Las Reglas F1", source) exports["notifications"]:showBox ( source, "info","Bienvenido Al Servidor." ) end addEventHandler("onPlayerLogin", getRootElement(), joinHandler)
  20. 1: You can't scroll up if I'm right. 2: You can learn from the lua page ( lua.org ), search for examples, mta wiki, and so on. 3: That's not a sql database, is a DLL ( you can see the extension ).
×
×
  • Create New...