Jump to content

Renkon

Members
  • Posts

    876
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Renkon

  1. isObjectInACLGroup triggerClientEvent
  2. I will do it for you, seems u don't get it ^^ function setleaderplayer () if ( source == GUIEditor_Button[6] ) then if ( getElementData ( localPlayer, "leader" ) ) then local playerNamel = guiGridListGetItemText ( GUIEditor_Grid[2], guiGridListGetSelectedItem ( GUIEditor_Grid[2] ), 1 ) if ( playerNamel ) then triggerServerEvent ( "setleader",localPlayer, playerNamel) end end end end addEventHandler ( "onClientGUIClick", root, setleaderplayer ) addEvent ( "setleader", true ) function setleader (playerNamel) local playe = getPlayerFromName ( playerNamel ) if ( playe ) then setElementData ( playe, "leader", "leader" ) local acc = getPlayerAccount ( playe ) setAccountData ( acc, "Leader", getElementData ( playe, "leader" ) ) outputChatBox ( "You are promoted to Vice-Leader!", playe, 255, 255,0 ) end end addEventHandler ( "setleader", root, setleader )
  3. Actually, there is a way only real hackers can work out to steal your code. Using loadstring from serverside.
  4. That's not all, there's a syntax error in the third variable insidet he table, remove the comma
  5. Functions inside event handlers CANNOT have a name, so remove drawingFunction.
  6. That's wrong. Element data is always synced unless you set the 4th argument to false. As far as I knew, if you modified elementData clientside it wouldn't be synced with the server
  7. Renkon

    Help gui

    It is clientside, but it has got only 1 argument
  8. Renkon

    Help gui

    https://wiki.multitheftauto.com/wiki/getPlayerTeam You have 1 more argument
  9. You MUST use setElementData serverside in other words.... since that piece of code is ONLY executed in leader's client, while it should go client -> server -> ¿client?
  10. If you want to create for individual player go clientside. If you want to create for everybody go serverside liek boo's example
  11. Cause this code is played only in the player who makes the INVITATION. And please notice that elementData modified client-side will only affect the CLIENT (localPlayer) In fact, you can't send a message to everybody from clientside, you MUST do a server trigger
  12. Renkon

    Grid list

    So localPlayer elementData "clan" contains a string? If that's the case, obviously clan cannot hold elementData cause its a simple string, and not an element. It won't work by that way. Now, if you want, WHAT YOU SHOULD DO, is to attach to the elementData a table holding the data like this: table = { ["clan1"] = "deathmatch", ["clanPro"] = "race" } And if you are trying to show the TEAMS, you should get the teams from serverside and trigger them, or create a dummy element and add it as elementData so you can get the dummy element and it's element data.
  13. Good job, but, is the resource useful? Think about it.. I think code may be really good and it would have been hard, but is it really worthwhile?
  14. for _, player in ipairs(getElementsByType("player")) do if getElementData(player, "x") then -- The guy has got that elementData end end
  15. setAccountData( playerAccount, "bank.balance", "0" )
  16. Lol iba a decir lo de onVehicleDamage y lo postie en el otro thread haha lol
  17. WTF Ya lo probe y no anda LOL me confundi de thread
  18. Probá onVehicleDamage...
  19. Mostranos por favor como es el sistema de guardado
  20. Line 9 replace for setPlayerWantedLevel ( getVehicleOccupant(attacker), 2)
  21. Que raro, yo tengo EXACTAMENTE el mismo y no tengo mayores problemas. Fijate si está bien la IP, probablemente etngas un error en la IP que poes
  22. Tenes Fibertel? Y pasame una foto de que modem tenes.
×
×
  • Create New...