Tony Brand

  • Content Count

  • Joined

  • Last visited

Community Reputation

4 Neutral

About Tony Brand

  • Rank

Recent Profile Visitors

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

  1. MTA Sa has many Persian Players and many Persian Devs that they want to help this community to grow better and better. we want to see Persian Section in Forum too @qaisjp
  2. Tony Brand

    MTASA bought by SAMP (April Fools)

    the best MTA Has been destroyed....
  3. Tony Brand

    MTASA bought by SAMP (April Fools)

    Oh My :Oing GOD
  4. Tony Brand

    [REL] MTA Custom Data System [Save CPU and Ram]

    it is great bro but can you add some examples too?
  5. Tony Brand

    [SHOW] - MTA - Discord integration API

    where to put src folder?
  6. Tony Brand

    Looking for the best way of player datas saving and loading

    my save system now saves it OnPlayerQuit and OnPlayerWasted, do you think if i add a 5minute timer for all players and keep OnPlayerQuit ,will fully support save progress?
  7. Hi, i use mysql for save my players datas such as PlayerName,PlayerLevel,PlayerMoney,PlayerJob,PlayerFaction &..... the method i use it that i get each key of each row when player connects and i set that key to player elementdata for example: local accData = singleQuery("SELECT * FROM users WHERE Name=? AND Key=? LIMIT 1",username,password) setElementData(source,"Number",tonumber(accData.Number)) setElementData(source,"Drugs",tonumber(accData.Drugs)) setElementData(source,"Faction",tonumber(accData.Faction)) setElementData(source,"Warns",tonumber(accData.Warns)) setElementData(source,"Email",(accData.Email)) i heard from someone that this method is awful and it is like that you are ddosing your players,also i saw some posts about setElementData in this forum that say this method must be replaced with another methods for works that trigger too much! can you tell me why? and do you know any better method for loading my players datas from sql ? and another Question: if i update Player data in sql once that data gets changed it can make server lag? for example i want to change PlayerMoney value once its changed,so it is possible for a player too change his money amount 100 times in a 30minutes,it can make lags or .... ? sorry for bad english
  8. Tony Brand

    [HELP] Heal system

    do you have better method instead of element data?
  9. Tony Brand

    [DEMO] Food Shop (Royal Life - Roleplay)

    so Why you added [REL] to your topic?
  10. Tony Brand

    Some help with Relative GUI Stuff

    hi, i am editing a gui resource that uses local x, y = guiGetScreenSize() local xx, yy = x / 1600, y / 900 GUI.window[1] = guiCreateWindow((x - (xx * 829)) / 2, (y - (yy * 589)) / 2, xx * 829, yy * 589, "Panel", false) for width and height and x & y (it is cause of many players use low resolution) so my question is how i can get new buttons,laybels,.... x , y , width , height ???? also it is relative x,y,width,height of a new picture that i want to add(got by GUIEditor) GUIEditor.staticimage[1] = guiCreateStaticImage(0.13, 0.09, 0.77, 0.84, "bg.png", true) GUIEditor.staticimage[2] = guiCreateStaticImage(0.07, 0.06, 0.85, 0.88, "x.png", true, GUIEditor.staticimage[1]) and it is absolute x,y,width,height of a new picture that i want to add(got by GUIEditor) GUIEditor.staticimage[1] = guiCreateStaticImage(178, 69, 1052, 645, "bg.png", false) GUIEditor.staticimage[2] = guiCreateStaticImage(74, 39, 894, 568, "x.png", false, GUIEditor.staticimage[1])
  11. Tony Brand

    Change tabpanel background?

    Hi guys i want to make a tabpanel and then change its background to a picture!also i need to show some labels on tabpanel! GUI.window[1] = guiCreateWindow((x - (xx * 829)) / 2, (y - (yy * 589)) / 2, xx * 829, yy * 589, "Police Panel", false) guiWindowSetSizable(GUI.window[1], false) GUI.staticimage[1] = guiCreateStaticImage(xx * 10, yy * 21, xx * 809, yy * 558, "10.png", false, GUI.window[1]) GUI.tabpanel[1] = guiCreateTabPanel(0, 0, xx * 809, yy * 558, false, GUI.staticimage[1])[1] = guiCreateTab("Stats", GUI.tabpanel[1])[2] = guiCreateTab("Criminals", GUI.tabpanel[1]) GUI.label[1] = guiCreateLabel(xx * 20, yy * 40, xx * 200, yy * 70, "Hello "..getPlayerName(localPlayer), false,[1]) GUI.label[2] = guiCreateLabel(xx * 20, yy * 80, xx * 400, yy * 70, "Rank: ", false,[1]) GUI.label[3] = guiCreateLabel(xx * 20, yy * 120, xx * 200, yy * 70, "ID: ", false,[1]) GUI.label[4] = guiCreateLabel(xx * 20, yy * 160, xx * 200, yy * 70, "Kills: ", false,[1]) i tried creating a staticimage after tabpanel but,result was :~!
  12. Hi,i want to make a gui stats panel this is the code made by GUIEditor resource! --[[------------------------------------------------- Notes: > This code is using a relative image filepath. This will only work as long as the location it is from always exists, and the resource it is part of is running. To ensure it does not break, it is highly encouraged to move images into your local resource and reference them there. --]]------------------------------------------------- GUIEditor = { tab = {}, staticimage = {}, tabpanel = {}, label = {}, window = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(124, 77, 1135, 638, "", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.staticimage[1] = guiCreateStaticImage(9, 9, 1107, 619, "Data/Images/back.png", false, GUIEditor.window[1]) GUIEditor.tabpanel[1] = guiCreateTabPanel(0, 11, 1107, 608, false, GUIEditor.staticimage[1])[1] = guiCreateTab("Stats", GUIEditor.tabpanel[1]) GUIEditor.label[1] = guiCreateLabel(34, 76, 222, 31, "Name: ..getPlayerName(localPlayer)", false,[1]) guiLabelSetColor(GUIEditor.label[1], 254, 0, 0) GUIEditor.label[2] = guiCreateLabel(34, 135, 222, 35, "Level", false,[1]) end ) for Second Label called Level i need to get player level with getElementData and put it after Level: ,any help plz?
  13. not working!! i solved Engine problem with this code: function engine(player) local veh = getPedOccupiedVehicle (player) setVehicleEngineState ( veh, false ) end addEventHandler("onVehicleEnter", getRootElement(), engine) but i don't have any idea about car locks!it is so crazy that a player can leave a vehicle while it is locked and it doesn't get unlocked!
  14. not working!without any error or warning