1LoL1

Members
  • Content Count

    945
  • Joined

  • Last visited

Community Reputation

4 Neutral

About 1LoL1

  • Rank
    Hoodsta

Recent Profile Visitors

932 profile views
  1. 1LoL1

    dxDrawText

    How i can show text in dxDrawText? i always get nil local screenW, screenH = guiGetScreenSize() addEventHandler("onClientRender", getRootElement(), function(text) local text2 = (getElementData(localPlayer, "text") or 0) if (text2 >= 0) and (text2 <= 3999) then text = 10 elseif (text2 >= 4000) and (text2 <= 5999) then text = 35 elseif (text2 >= 6000) and (text2 <= 10000000) then text = 70 end dxDrawText(text, screenW * 0.0638, screenH * 0.3317, screenW * 0.3200, screenH * 0.3550, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false) end)
  2. 1LoL1

    Expected account

    ok this works thanks for help function TST(player, command, accountName) local account = getAccount(accountName) if account then local player = getAccountPlayer(account) if player then
  3. 1LoL1

    Expected account

    Unable to get account @ TST:account, got "boolean" i used /tst noob and this error example: LOL = online ShayF = offline /tst LOL work /tst ShayF then nothing because account is not on on the server
  4. 1LoL1

    Expected account

    my acc: LOL if i use /tst LOL its working but when i use /tst LOL5666 etc.. i have warning.. function TST(player, command, accountName) local account = getAccount(accountName) local player = getAccountPlayer(account) if player then Bad argument @ 'getAccountPlayer' [Expected account at argument 1, got boolean] How to check account if exist? Please help me anyone
  5. function check () local r,g,b if isObjectInACLGroup ("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Forever")) then setPlayerTeam(source, getTeamFromName("FO")) r, g, b = getTeamColor(getTeamFromName("FO")) setPlayerNametagColor(source, r, g, b) end end addEventHandler("onPlayerLogin", getRootElement(), check)
  6. addEventHandler("onClientPlayerSpawn", getLocalPlayer(), function() setElementHealth(source, getElementHealth(source) - 99) end)
  7. 1LoL1

    Script doesnt work

    oh i don't think this i mean normal text Example: /sms 1 2 3 4 5 1 2 3 4 5 /sms 1\n2\n3\n4\n5 1 2 3 4 5
  8. Hello, can anyone help me with this? i always must use /sms . text i need /sms text and why i can't use example: /sms text\ntext\ntext ? server-side addCommandHandler("sms", function(player, cmd, sms, ...) newSMS = table.concat({...}, " ") sms = newSMS triggerClientEvent("onSMSTrigger", player, sms) end) client-side local screenW, screenH = guiGetScreenSize() local sms = "" addEvent("onSMSTrigger", true) addEventHandler("onSMSTrigger", getRootElement(), function (newSMS) sms = newSMS end) addEventHandler("onClientRender", getRootElement(), function() dxDrawText(sms, (screenW * 0.2462) + 1, (screenH * 0.6833) + 1, (screenW * 0.8838) + 1, (screenH * 0.9933) + 1, tocolor(0, 0, 0, 255), 2.50, "default-bold", "left", "top", true, true, false, true, false) dxDrawText(sms, screenW * 0.2462, screenH * 0.6833, screenW * 0.8838, screenH * 0.9933, tocolor(255, 255, 255, 255), 2.50, "default-bold", "left", "top", true, true, false, true, false) end)
  9. 1LoL1

    unconvertnumber

    Please can anyone help me with this? i don't know how to unconvertnumber with "$" when it's money = "5,000,000" working but with $ not working.. money = "5,000,000$" function unconvertNumber ( number ) local result = number:gsub ( ",", "" ); return tonumber ( result ); end outputChatBox(unconvertNumber(money))
  10. 1LoL1

    getPlayerName Nick

    function lalala () for i,v in ipairs (getElementsByType("player")) do outputChatBox(getPlayerName(v)) end end addCommandHandler("players", lalala) here.. how i can delete my name? but others i will see. Works thanks.
  11. 1LoL1

    getPlayerName Nick

    doesnt work.. its the same what i have..