Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. I think Anderl is talking about SQLite, if you don't need to use it outside the server, then it's faster as far as I know.
  2. https://github.com/mabako/mta-paradise That one is not as complete as the valhalla leaks that are all around, but is not ilegal.
  3. Exactly, the client script has to be defined as client side in meta.xml P.S: function toggleGodMode ( thePlayer ) local account = getPlayerAccount ( thePlayer ) if ( not account or isGuestAccount ( account ) ) then return end local accountName = getAccountName ( account ) if ( isObjectInACLGroup ( "user.".. accountName, aclGetGroup ( "Admin" ) ) ) then local state = ( not getElementData ( thePlayer, "invincible" ) ) setElementData ( thePlayer, "invincible", state ) outputChatBox ( "God Mode is now ".. ( state and "Enabled" or "Disabled" ) ..".", thePlayer, 0, 255, 0 ) end end addCommandHandler ( "godmode", toggleGodMode ) same script, but "improved".
  4. Surely is a resource which uses the function that enables: air cars, water cars, and so on. Not a hack at all.
  5. We don't accept requests here, learn to script or pay someone to do it. You could post your current script and see if we can find the problem.
  6. See if 'drawFontCity' returns something. P.S: Both dxCreateFont are outside the drawing event ( onClientRender ), right?
  7. My script should hide it for everyone, then show it to the players inside the team.
  8. createBlip ( 2158.70, 943.07, 12, 6, 2, 255, 255, 255, 255, 0, 300 ) 300 = distancia.
  9. Castillo

    Barra cargando

    Que yo sepa no se puede cambiar, no hay funciones para ocultarla ni obtener el progreso.
  10. Castillo

    Barra cargando

    No podes cambiarla, y no veo para que quierrias hacerlo.
  11. En los scripts, al crear los blips, podes definir la distancia.
  12. You are talking about dxCreateScreenSource ?
  13. addEventHandler ( "onClientResourceStart", resourceRoot, function ( ) theBlip = exports.customblips:createCustomBlip ( 0,0, 20, 20, "icon.png" ) exports.customblips:destroyCustomBlip ( theBlip ) end ) Should work.
  14. Castillo

    Barra cargando

    Estas hablando de la barra de descarga de archivos?
  15. Tenes que cambiarle la distancia de visibilidad.
  16. topic moved to "General". Happy Birthday btw
  17. function onPlayerSpawn1 ( spawnpoint ) local blip = createBlipAttachedTo ( source, 0, 2, 0, 0, 255, 255, 0, 300 ) setElementVisibleTo ( blip, root, false ) for _, player in ipairs ( getPlayersInTeam ( getTeamFromName ( "Policja" ) ) ) do setElementVisibleTo ( blip, player, true ) end end
  18. ACL doesn't use serials, it uses account names. Maybe that guy registered an account with his serial as name.
  19. I know many people who call "login" for "join". P.S: Better stop the discussion, just wait until Honda replies.
  20. function respawnAllVehicles ( ) local vehicles = getElementsByType ( "vehicle" ) for _, vehicle in ipairs ( vehicles ) do if ( vehicles ) then toggleVehicleRespawn ( vehicle, true ) -- enable vehicle respawn as it is necessary for the idle respawn to function setVehicleIdleRespawnDelay ( vehicle, 20000 ) -- tell the server to respawn the vehicle 20 seconds after it's been left. end end end addEventHandler ( "onResourceStart", resourceRoot, respawnAllVehicles )
  21. 'vehicles' is a table, you must loop it to get the vehicle elements. Like this: for _, vehicle in ipairs ( vehicles ) do -- Your code end
  22. Que tienen que ver? ese evento es solo client side.
  23. The serial has nothing to do with this, search for: "user.theNameOfTheAccount"> Obviously, change 'theNameOfTheAccount' to whatever is his account.
  24. 1: Pusiste un script client side en un script server side. 2: Pusiste "aaddEventHandler" no "addEventHandler".
×
×
  • Create New...