Jump to content

Et-win

Members
  • Posts

    1,390
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Et-win

  1. Is it synced with the server then, or something? Because how do you want to replace the original ID with a something different while other players have the same ID which is the original?
  2. The problem could be litterly anything. Check /debugscript 3 first of all lol.
  3. Not sure if stolen or just released and allowed to use it: https://forum.multitheftauto.com/viewtopic.php?f=91&t=52674 (@ Timers)
  4. 1 topic is enough, really.
  5. The message says it all.... You forgot ')' to close something. (outputChatBox I suppose)
  6. Et-win

    Help XML

    Put some 'outputChatBox' codes in after every line (For example) and give them number, as soon as a number is not displayed you know your error.
  7. You didn't say that before.
  8. If your server isn't even started yet, then what's the point of making it when you are not even sure it works directly?
  9. Et-win

    One code.

    Just contact someone who you trust.
  10. ...You have no idea what you are doing, right? First get all accounts (getAccounts()) Then use a loop on that table. Then get the player who is using the account at that moment (getAccountPlayer()) If it is false it's not in use so you could call that offline, otherwise online.
  11. --And: getAccountPlayer And: Go read Wiki immediately now before saying something that isn't true......
  12. Et-win

    Team Healthbar

    local team = getTeamFromName ( Team1 ) Where is Team1 defined?
  13. Et-win

    easy problem

    players = 0 local screenWidth,screenHeight = guiGetScreenSize() function drawCount() dxDrawText(tostring(players),screenWidth/2,screenHeight/2,screenWidth/2+150,screenHeight/2+150,tocolor(0,0,255,255),1,"bankgothic") end addEventHandler("onClientRender",root,drawCount) function totalFreeroamPlayerNumber(playerCount) if playerCount then players = playerCount else return end end addEvent("onPlayerCountChange",true) addEventHandler("onPlayerCountChange",root,totalFreeroamPlayerNumber)
  14. Et-win

    easy problem

    addEvent("onPlayerCountChange", true) Add that too. (Above addEventHandler)
  15. Et-win

    Questions

    u must put getElementType in First and u must Check if player have team then Check his team He says that the GUI get's opened if he isn't in that team, you can clearly see that this shouldn't be a problem because if he isn't in a team the script doesn't even continue. Btw: You missed an end.
  16. I lol'd, yes it's fixed. But I still don't know how because I can't find 'marker[4]' in the script, or he didn't post the whole script
  17. ^ There is no jails[][4] index? There are only 3
  18. Et-win

    [[text]]

    I think instead of " [[ or ]] too, but not sure.
  19. --Server-Side: function gAccountsToSend() local gAccounts = {} local gPlayers = getElementsByType("player") if (gPlayers ~= false) and (gPlayers ~= nil) then for placeNumber, playerData in ipairs(gPlayers) do local gAccount = getPlayerAccount(playerData) if (gAccount ~= false) and (gAccount ~= nil) then local gAccountName = getAccountName(gAccount) if (gAccountName ~= false) and (gAccountName ~= nil) then table.insert(gAccounts, gAccountName) end end end end triggerClientEvent(source, "onSendAccountNamesToClient", getRootElement(), gAccounts) end addEvent("onClientRequestAccountNames", true) addEventHandler("onClientRequestAccountNames", getRootElement(), gAccountsToSend) --Client-Side: local tab = {} local tabpanel = {} local label = {} local button = {} local edit = {} local player = localPlayer function fGridList(gAccounts) if (isElement(accountGrid)) then for placeNumber, stringData in ipairs(gAccounts) do guiGridListSetItemText(accountGrid, guiGridListAddRow(accountGrid), accountColumn, stringData, false, false) end end end addEvent("onSendAccountNamesToClient", true) addEventHandler("onSendAccountNamesToClient", getRootElement(), fGridList) function gridlist() local screenWidth, screenHeight = guiGetScreenSize() window1 = guiCreateWindow(screenWidth * 0.24, screenHeight * 0.2, 771, 457, "TEST", false) guiWindowSetSizable(window1, false) guiSetVisible(window1,false) accountGrid = guiCreateGridList(9, 23, 249, 228, false, window1) guiGridListSetSelectionMode(accountGrid, 2) accountColumn = guiGridListAddColumn(accountGrid, "Player", 0.85) triggerServerEvent("onClientRequestAccountNames", player) end addEventHandler("onClientResourceStart", resourceRoot, gridlist) addEventHandler("onClientResourceStart",resourceRoot, function() if not isElement(window1) then gridlist() end bindKey ( "F3", "down", openGui ) end ) function openGui() if not isElement(window1) then gridlist() end if not guiGetVisible(window1) then --stats() guiSetVisible ( window1, true ) showCursor(true) else guiSetVisible ( window1, false ) showCursor(false) end end If not working, use debugscript 3
  20. Et-win

    Questions

    Lol? I make my markers like this I change the value of Marker variable -.-. local Marker = createMarker(...) local Marker = createMarker(...) local Marker = createMarker(...) local Marker = createMarker(...) How could I smell that? I didn't see any script lol.
  21. Et-win

    Questions

    Check if the source == marker, lol.
  22. Et-win

    Admin (help)

    onVehicleEnter isObjectInACLGroup getElementModel
×
×
  • Create New...