Jump to content

FreeGells

Members
  • Posts

    32
  • Joined

  • Last visited

Everything posted by FreeGells

  1. I think so, but i can use setElementData... Ex: setElementData(getPlayerFromName("FreeGells"),"Sniper Rifle",2)
  2. I had forgotten that but... i want all the datas, ex: blood, painkillers, m4, assault ammo, etc... (i'm using DayZ Gamemode), and only print Water Bottle and Wood datas how i view all the datas ? And in the log have this:
  3. Hello! I trying pickup the element data , to make a panel, but the GetAllElementData dont work ): please help me. Code: function getMyData(thePlayer, command) local data = getAllElementData(thePlayer) for k, v in pairs(data) do outputChatBox(k .. ": " .. v, thePlayer) end end addCommandHandler("teste", getMyData) I Pickup this in the wiki.
  4. Eai galera, to com uma duvida aqui. Eu to tentando mudar o modelo da m4, para um outro, só que não estou conseguindo! Aqui está o código: addEventHandler("onPlayerJoin", getRootElement(), function() txd = engineLoadTXD( "m4.txd" ) dff = engineLoadDFF( "m4.dff", 0 ) engineImportTXD( txd, 356 ) engineReplaceModel( dff, 356 ) end) não tenho idéia do que fazer, obrigado!
  5. Olá, eu consegui abrir agora sem erros, mais quando entro no game, o GUI não aparece em minha tela, o que devo fazer ? Obrigado.
  6. Olá amigos! estou tentando criar uma grid para administrar os players, mas ele da um erro.. este aqui é o código: function createPlayerList () playerList = guiCreateGridList ( 0.80, 0.10, 0.15, 0.60, true ) local column = guiGridListAddColumn( playerList, "Player", 0.85 ) if ( column ) then for id, playeritem in ipairs(getElementsByType("player")) do local row = guiGridListAddRow ( playerList ) guiGridListSetItemText ( playerList, row, column, getPlayerName ( playeritem ), false, false ) end addEventHandler ( "onClientGUIClick", playerList, click ) end end addEventHandler("onPlayerJoin", getRootElement(), createPlayerList) function click () local playerName = guiGridListGetItemText ( playerList, guiGridListGetSelectedItem ( playerList ), 1 ) outputChatBox("Selecionei voce!", playerName) end Agradeço desde já!
  7. Hello, i need help with a give DayZ items to players, Ex: Coyote, Weapons, Ammo, im amateur in lua and MTA, i need your help to make a "Admin Panel" to give/edit Items in DayZ, thanks.
×
×
  • Create New...