Jump to content

Renkon

Members
  • Posts

    876
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Renkon

  1. You are mixing client and server-sided events KraZ... This will work.. addEventHandler("onPlayerJoin", root, function() showPlayerHudComponent(source, "radar" ,false) showPlayerHudComponent(source, "area_name" ,false) end) addEventHandler("onPlayerLogin", root, function() showPlayerHudComponent(source, "radar" ,true) showChat(source, true) showPlayerHudComponent(source, "area_name" ,true) end)
  2. Renkon

    Help?

    At a glimpse it should be fine. Are you trying to show that when player joins or logs in?
  3. Renkon

    Name

    crea una tabla local la_masturbanda = {} addCommandHandler ( "Hola", function ( source, commandName, name ) Jugador1 = getPlayerName ( source ) Jugador2 = getPlayerFromNamePart ( name ) if ( Jugador2 ) then la_masturbanda[Jugador1] = Jugador2 outputChatBox ( Jugador1 ..": ".. getPlayerName ( Jugador2 ), Jugador2 ) outputChatBox( "mensaje enviado", source) end end ) addCommandHandler("Hola2", function(source) outputChatBox(getPlayerName(source) .. " quiere hablar con vos ", la_masturbanda[source]) end ) function getPlayerFromNamePart(name) if name then for i, player in ipairs(getElementsByType("player")) do if string.find(getPlayerName(player):lower(), tostring(name):lower(), 1, true) then return player end end end return false end
  4. cuando usaste string.gsub, no habrás puesto un espacio como tercer argumento?
  5. Excuse me, should you take freeroam out from Play's meta.xml file?
  6. MTA crashes when initializing if Gaming mode is activated. Any ideas how to fix that?
  7. Update to latest version, it's already built-in
  8. check in wiki setTimer arguments.
  9. carModel would be nil there... you need to pass some argument to setTimer after repeatXTimes argument.
  10. floodSA(source,command,speed) <-- it requires 3 arguments in setTimer you are calling it with no arguments!
  11. setTimer ( function() floodSA() outputChatBox ( "Flood will start in 5 sec" ) end, 5000, 1 ) You missed function()
  12. Why don't you just reply what was the problem and help everybody. You guys are just asking and asking but not cooperating nor helping other people
  13. At a glimpse I noticed every row's would have item15 written due to the fact that it's always overwritten for i,v in pairs(Gridlists) do local column=guiGridListAddColumn(v,"Column",85) for g = 1, 15 do local row=guiGridListAddRow(v) guiGridListSetItemText(v,row,column,Texts[i],false,false) end end
  14. //es: Como estas triggeando la llamada a la función?, si es con triggerServerEvent(evento, ELSOURCE) ? I believe your problem is that you are triggering the event with wrong source.
  15. onPlayerJoin is a server-side event.
  16. Indeed I don't really get it well without a clear example . I wanted to know how to unload since that's the perfect way to make maps with scripts be added to the server w/o starting.
  17. You can use 'nil', unless I'm wrong
  18. Renkon

    [AYUDA] Blips

    Un argumento de createBlip es attachedTo
  19. createVehicle warpPedIntoVehicle?
  20. Do you know where can I find some example?
  21. Maybe if you would give us further information, like debug errors or anything, we would be able to cooperate. Don't expect us to be god.
  22. For points it's almost the same (for saving and getting). My recommendation is that, in order to prevent problems you should also add some event onResourceStop to save, in case shit happens. For the second option, open the Lua file and search for "Spectators:", then, replace however you want.
×
×
  • Create New...