Jump to content

VenomOG

Members
  • Posts

    362
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by VenomOG

  1. Updates Updates are finished. Opening later today.
  2. But atleast take a visit before criticizing our server, after you visit you make share your opinions. and if its like sau* then i guess ci* is like sau* and say* and s*aug and sae* and all the RPG servers. do not act like your mature and etc and think if you say whatever people will respect you.
  3. Its just to protect the code, you want the full one? levels = { { reach = 0 }, { reach = 50 }, { reach = 100 }, { reach = 180 }, { reach = 240 }, { reach = 300 }, { reach = 370 }, { reach = 450 }, { reach = 560 }, { reach = 690 }, { reach = 800 }, { reach = 1000 }, { reach = 1400 }, { reach = 1600 }, { reach = 1700 }, { reach = 2000 }, { reach = 3000 }, { reach = 4000 }, { reach = 5000 }, } function getRankForEXP(plr,exp) newrank = false currank = tonumber(getElementData(plr,"Level")) or 0 curreach = tonumber(getElementData(plr,"LevelXP")) or 100 curoreach = tonumber(getElementData(plr,"oLevelXPReach")) or 0 for ind,val in ipairs(levels) do if ind > currank and val.reach <= exp then rank = ind arank = tonumber(rank)+1 areach = levels[arank] areach = areach.reach oreach = val.reach newrank = true end end if newrank then return rank,areach,oreach end return currank, curreach, curoreach end @MrTasty
  4. or ind,val in ipairs(levels) do if ind > currank and val.reach <= exp then rank = ind arank = tonumber(rank)+1 areach = val[arank] areach = areach.reach oreach = val.reach newrank = true end end --------- rank,reach,oreach = getRankForEXP(plr,"Level",new) setElementData(plr,"Level",rank) setElementData(plr, "LevelXP", reach) setElementData(plr, "oLevelXPreach", oreach) The problem is areach , it is like it doesn't define.
  5. mmm, thanks i guess but what copying i didn't copy and paste nothing everything is hand written , these are our own idea , so no matter if another server has it, we made our own systems nothing was handed out , we had an issue a while back where our scripts got shared and alot of people now has the old version this is our own version.
  6. Hello! Welcome to our server topic! we are SAEG:RPG : San Andreas Extreme Gamers ! so today i've decided to advertise our community! to everyone in MTA so that people can see what we are and what we do , especially some of our systems, we might not be the best server but we are pushing to be and with y'all help by supporting us we might just can. Some information about our cummunity Some of our fabulous systems of many Advanced Login Companies UCP - User Control Panel Vehicle Shops Jobs World Maps Latest Updates Server satus : OPENED Discord : https://discord.gg/kCKy4KV Server name : SAEG:RPG Forums: www.saegrpg.com Version: 5.0 IP : mtasa://46.105.250.205:26014 We would appreciate your support thanks. we just want everyone to feel welcomed and at home, OPENED to any suggestions!
  7. im calling the function from another script aka UCP script
  8. Thanks for your support mate. May you check my other topic? its urgent
  9. Hello so heres the codes SERVER local TitlesTable = { } function getTitlesTable() return TitlesTable end CLIENT THAT IS CALLING EXPORT for i, k in ipairs(exports.HIDDEN:getTitlesTable()) do dxDrawRelativeRectangle(598, 219+i*30, 296, 30, isMouseInPosition((598/resolutionX )*sWidth,((219+i*30)/resolutionY )*sHeight, (219/resolutionX )*sWidth, (32/resolutionY )*sHeight) and tocolor(255, 255, 255, 158) or tocolor(0, 0, 0, 158)) dxDrawRelativeText(k[1], 701, 200+i*30, 785+40, 239+(i+1)*30, tocolor(255, 255, 255, 255), 0.40, dxfont5_bebas_font, "left", "center") end META <meta> <info author="Hidden" name="Titles" type="script" version="1.1.0" description="Hidden Titles" /> <script src="client.Lua" type="client"/> <script src="server.Lua" type="server"/> <file src="fonts/font.ttf"/> <export function="createTitle" type="server" /> <export function="equipCT" type="client" /> <export function="getTitlesTable" type="server" /> </meta> So it gives me an error Any suggestions?
  10. How can this help my situation? example please.
  11. Hello Code: addEventHandler("onClientRender", root, function() dxDrawRectangle(0, 93, 1366, 143, tocolor(16, 15, 15, 197), false) dxDrawText("Rank Up !", 610, 60, 860, 136, tocolor(56, 229, 10, 212), 2.50, "pricedown", "left", "top", false, false, false, false, false) dxDrawText(" Mugger", 534, 166, 908, 226, tocolor(237, 174, 3, 212), 1.90, "pricedown", "left", "top", false, false, false, false, false) end ) So basically i am wondering if there is a way i can make a dx text stay one place like if the text was Chief Of Gangster it will be out of bound and not where i want it or Mugger will be far from where i want it under Rank Up! Any suggestions?
  12. RPG - GTA 5 ! These days I've been thinking about creating a RPG - GTA 5 server . I know it's not easy but since 2017 august I have been learning Lua (MTA) and I'm already familiar with the process, however, I'll need someone else to help me in this new adventure! What we need, DX GUI (Click Elements, Moving Boxes, Fading, Drawing) Designing (Buttons, Boxes, Logos) Mods (Vehicles , Handlings) Decent English (Important for Coding) Resources, Jobs Bank Public Vehicles spawner Vehicle Shops Inventory Trade system Jail System Criminal Activities VIP system Bank Robbery Store Robbery Smugglers Missions Contact , Leave your information in the page Message me on this forums Conclusion I want our works secured and protected i want this server to reach somewhere in mta with our hard effort i need a devoted team
  13. local playerList = guiCreateGridList(0.80, 0.40, 0.15, 0.35, true) guiGridListAddColumn(playerList, "Player", 0.85) for _, player in ipairs(getElementsByType("player") ) do local accName = getAccountName ( getPlayerAccount ( player ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) do guiGridListAddRow(playerList, getPlayerName(player)) end end Haven't coded in a while check this
  14. Contact the author Or re download the official script
  15. Im trying to render it with the data from server and be able to remove render when hide inventory, but ty for try lil
  16. When i trigger showInventory
  17. targetFunctionData[ 1 ]( timeSlice, unpack( arguments ) ) attempt to call field '?'
  18. function renderInventory(itens, quant) i = 0 local screenW, screenH = guiGetScreenSize() isOpen = true for k,v in ipairs(itens) do i = i + 20 dxDrawImage(screenW * 0.3441, screenH * 0.3841, screenW * 0.3097*v["item"], screenH * 0.5313, ":GTCHUD/img/background.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) dxDrawImage(screenW * 0.2936, screenH * 0.3503, screenW * 0.4085, screenH * 0.0898, ":GTCpolicecomputer/button.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) dxDrawText("User Inventory", screenW * 0.4129, screenH * 0.3568, screenW * 0.4736, screenH * 0.3789, tocolor(255, 255, 255, 255), 3.00, "default", "left", "top", false, false, false, false, false) dxDrawText("Item", screenW * 0.3755, screenH * 0.4531, screenW * 0.4627, screenH * 0.4896, tocolor(255, 255, 255, 255), 1.20, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("Stock", screenW * 0.5461, screenH * 0.4531, screenW * 0.6332, screenH * 0.4896, tocolor(255, 255, 255, 255), 1.20, "default-bold", "left", "top", false, false, false, false, false) dxDrawText(""..v["item"].."", screenW * 0.3755, screenH * 0.4974+i, screenW * 0.4627, screenH * 0.5339, tocolor(255, 255, 255, 255), 1.20, "default-bold", "left", "top", false, false, false, false, false) dxDrawText(""..v["quant"].."", screenW * 0.5461, screenH * 0.4948+i, screenW * 0.6332, screenH * 0.5313, tocolor(255, 255, 255, 255), 1.20, "default-bold", "left", "top", false, false, false, false, false) end end addEvent("showInventory", true) addEventHandler("showInventory", getRootElement(), function(itens, quant) addRenderEvent(renderInventory, "onClientRender", itens, quant) end ) addEvent("hideInventory", true) addEventHandler("hideInventory", getRootElement(), function () isOpen = false removeRenderEvent("onClientRender",root,renderInventory) end) Dosn't work. And yes i added the source
  19. @IIYAMA With peace of my code .
  20. Hello i have an inventory script and it works but its dx im wondering how to trigger it . addEvent("showInventory", true) addEventHandler("showInventory", getRootElement(), function(itens, quant) addEventHandler("onClientRender",root,function() i = 0 local screenW, screenH = guiGetScreenSize() isOpen = true for k,v in ipairs(itens) do i = i + 20 dxDrawImage(screenW * 0.3441, screenH * 0.3841, screenW * 0.3097, screenH * 0.5313, ":GTCHUD/img/background.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) dxDrawImage(screenW * 0.2936, screenH * 0.3503, screenW * 0.4085, screenH * 0.0898, ":GTCpolicecomputer/button.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) dxDrawText("User Inventory", screenW * 0.4129, screenH * 0.3568, screenW * 0.4736, screenH * 0.3789, tocolor(255, 255, 255, 255), 3.00, "default", "left", "top", false, false, false, false, false) dxDrawText("Item", screenW * 0.3755, screenH * 0.4531, screenW * 0.4627, screenH * 0.4896, tocolor(255, 255, 255, 255), 1.20, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("Stock", screenW * 0.5461, screenH * 0.4531, screenW * 0.6332, screenH * 0.4896, tocolor(255, 255, 255, 255), 1.20, "default-bold", "left", "top", false, false, false, false, false) dxDrawText(""..v["item"].."", screenW * 0.3755, screenH * 0.4974+i, screenW * 0.4627, screenH * 0.5339, tocolor(255, 255, 255, 255), 1.20, "default-bold", "left", "top", false, false, false, false, false) dxDrawText(""..v["quant"].."", screenW * 0.5461, screenH * 0.4948+i, screenW * 0.6332, screenH * 0.5313, tocolor(255, 255, 255, 255), 1.20, "default-bold", "left", "top", false, false, false, false, false) end end) end ) addEvent("hideInventory", true) addEventHandler("hideInventory", getRootElement(), function () destroyElement(GUIEditor.window[1]) isOpen = false removeEventHandler("onClientRender",root,ourdx) end) I want to render it but have acess to item,quant . and when hideInventory remove the render
  21. It goes to the needed xp the just breaks even when I added the rest levels
×
×
  • Create New...