Jump to content

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. the best MTA Has been destroyed....
  3. it is great bro but can you add some examples too?
  4. 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?
  5. 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(
  6. do you have better method instead of element data?
  7. 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) GUIEdito
  8. 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]) GUI.tab[1] = guiCreateTab("Stats", GUI.tabpanel[1]) GUI.tab[2] = guiCreateTab("Criminals", GUI.tabp
  9. 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 = {} } a
  10. 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!
  • Create New...