Chaz-CR

Members
  • Content Count

    229
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Chaz-CR

  • Rank
    Trick

Details

  • Gang
    Age Of Battles
  • Location
    San Jose, Costa Rica

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Chaz-CR

    guiGetScreenSize

    Thanks guys. Fixed!
  2. Chaz-CR

    guiGetScreenSize

    Hello everybody, i was trying to add some labels to the screen about normal information (Location, Server Name, Fps and Ping). So I found out that they has guiGetScreenSize but when I change the resolution it seems weird. Not as I made it. So I wanted to know how to make the "maths" of this function to get the same place in different resolutions. CODE I MADE. addEventHandler("onClientRender", root, function() local sx,sy = guiGetScreenSize() dxDrawText("AGE Of BATTLES", sx*673/800, sy*550.5/600, sx*0/800, sy*0/600, tocolor(0, 109, 132, 255), 1.3, "pricedown", "left", false, false, false, false, false, false) end )
  3. Chaz-CR

    A little help with elementData

    Solved! Thanks for your help
  4. Chaz-CR

    A little help with elementData

    Hello guys. I was wondering if you guys could help me a little bit with a resource that i have been editing (It's not mine), but i got the permissions to edit it so i was tring to clear it from the /debugscript 3 and i fixed it a little but i found some errors and i dont know how to fix it. When i commit a suicide, i received those messages. (IMAGE) IMAGE CODE function setLevel(killer) local leveld = getElementData(killer,"kill.level") local sleveld = getElementData(source,"kill.level") local klevel = getElementData(killer,"Level") local kills = getElementData(killer,"Kills") local deaths = getElementData(source,"Deaths") local points = getElementData(killer,"avail.points") if (killer) and getElementType(killer) == "player" and killer ~= source then setElementData(source,"Deaths",deaths + 1) if (killer) and getElementType(killer) == "player" and killer == source then return end if tonumber(sleveld) > 1 then setElementData(source,"kill.level",tonumber(sleveld)-math.random(1,10) ) else setElementData(source,"kill.level",0) end if tonumber(klevel) <= 9 then triggerServerEvent("createText",killer) setElementData(killer,"kill.level",tonumber(leveld) + math.random(1,2)) elseif tonumber(klevel) > 9 and tonumber(klevel) <= 19 then triggerServerEvent("createText",killer) setElementData(killer,"kill.level",tonumber(leveld) + math.random(1,2)) elseif tonumber(klevel) > 19 and tonumber(klevel) <= 29 then triggerServerEvent("createText",killer) setElementData(killer,"kill.level",tonumber(leveld) + math.random(1,2)) elseif tonumber(klevel) > 29 and tonumber(klevel) < 39 then triggerServerEvent("createText",killer) setElementData(killer,"kill.level",tonumber(leveld) + math.random(1,2)) elseif tonumber(klevel) > 39 and tonumber(klevel) < 49 then triggerServerEvent("createText",killer) setElementData(killer,"kill.level",tonumber(leveld) + math.random(1,2)) elseif tonumber(klevel) > 49 and tonumber(klevel) < 59 then triggerServerEvent("createText",killer) setElementData(killer,"kill.level",tonumber(leveld) + math.random(1,2)) elseif tonumber(klevel) > 59 and tonumber(klevel) < 69 then triggerServerEvent("createText",killer) setElementData(killer,"kill.level",tonumber(leveld) + math.random(1,2)) elseif tonumber(klevel) > 69 and tonumber(klevel) < 79 then triggerServerEvent("createText",killer) setElementData(killer,"kill.level",tonumber(leveld) + math.random(1,2)) elseif tonumber(klevel) > 79 and tonumber(klevel) < 89 then triggerServerEvent("createText",killer) setElementData(killer,"kill.level",tonumber(leveld) + math.random(1,2)) elseif tonumber(klevel) > 89 and tonumber(klevel) < 94 then triggerServerEvent("createText",killer) setElementData(killer,"kill.level",tonumber(leveld) + math.random(1,2)) elseif tonumber(klevel) > 94 and tonumber(klevel) < 100 then triggerServerEvent("createText",killer) setElementData(killer,"kill.level",tonumber(leveld) + 1) end setElementData(killer,"Kills",kills + 0) triggerServerEvent("giveKillerMoney",killer) end end addEventHandler("onClientPlayerWasted",getRootElement(),setLevel) Thanks for the help BTW.
  5. Chaz-CR

    getAccountName and getPlayerName

    Hello, i was making a gridlist where i can see the player nicknames but when i trigger the function i receive the accountName and i dont know how to change it to the PlayerName! There are the codes: function getPlayerKillsInOrder() theTable = {} for i, acc in ipairs(getAccounts()) do local name = getAccountName(acc) local kills = getAccountData(acc, "Kills") or 0 table.insert(theTable, {kills, name}) end ------not necessary the Trigger: addEvent("refreshList", true) addEventHandler("refreshList", root, function() triggerClientEvent(source, "onRequestRefresh", source, getPlayerKillsInOrder()) theTable = nil end)
  6. Chaz-CR

    MTA Client Verification failed, help pls

    Try deleting all the resources from those servers and re-download them, some resource could make some trouble there.
  7. Chaz-CR

    [REL]Gang War Gamemode (Free)

    At least he shared his work to the community, he spend hours doing this and he is not selling any resource or script. PD: Good work making this gamemode!
  8. Chaz-CR

    [REL]Police Cars Spawner

    Therefore the TopBarChat is made by xXMADEXx, but anyways the script is not changed in anything, good work keep it up!
  9. Chaz-CR

    Refresh the gridlist.

    Hey T-Bom I've been fine thanks. And i didn't know that. Those functions might be helpful in other resource I'm making, thanks for the help!
  10. Chaz-CR

    [REL]Police Cars Spawner

    Good man!
  11. Chaz-CR

    Refresh the gridlist.

    Thanks man i solved it!
  12. Chaz-CR

    Refresh the gridlist.

    So how the title says, i want to refresh the gridlist of the players when i open the panel, how can i do that? this is what i did with a loop. for id, playeritem in ipairs(getElementsByType("player")) do local row = guiGridListAddRow ( gridlist ) guiGridListSetItemText ( gridlist, row, playcol, string.gsub ( getPlayerName (playeritem), '#%x%x%x%x%x%x','' ), false, false ) end
  13. Chaz-CR

    How do i know this....

    Now a stupid question, What is that?
  14. Chaz-CR

    How do i know this....

    Hello guys, i was wondering how can i know the use of the ram of my server in the host because the support team of my host said i get time out because of the max use of the RAM and the ram of this host is 2GB!
  15. Chaz-CR

    A little help of a save system!

    I didn't understand.