Jump to content

Axel

Members
  • Posts

    521
  • Joined

  • Last visited

Everything posted by Axel

  1. Discuti cu liderul factiunii.
  2. Daca e vR zici, forumul este: vr-rp.ro
  3. Our server went over a peak of 205 players, and has constant 150, and lag has become a serious problem. What are some tips you, reader, can give me to reduce lag, loading time, etc on a crowded sever with lots of objects, vehicles, etc?
  4. This script is awesome! You could make more corporatist features!
  5. Axel

    Lumberjack Job?

    I tested it and it works only on created objects. Is there a way around it to work on real world objects?
  6. Axel

    Lumberjack Job?

    You mean the hitElement would be my target, and use it to remove it Serverside, and then restore it after soome time? Is onClientPlayerWeaponFire accurate?
  7. Axel

    Lumberjack Job?

    Can it be used on the actual world trees?
  8. Axel

    Lumberjack Job?

    Is there a way to make this in MTA:
  9. What is the tatu Memo? Can you use that function for it? Can we help somehow?
  10. Can you not do smething like this: local nr = 8 function formatString( text ) -- function to format the entire text into a table if string.len(text) > nr then return string.sub(text, 1, nr-1), formatString( string.sub(text, nr) ) else return text end end local testText = "we are testing here something, if it makes our table" local textTable = { formatString(testText) } And then just use the table in your code?
  11. Present it to us (the code). We could help you to fix the problem.
  12. What is the status of memo? It is the only gui element stoppping me from reacing my entire gui with yours.
  13. Try to reduce usage, lesser loops, if any, lesser dx drawings, if you made it round, make it square, to use less dxdrawrectangle. Or rewrite it in a different way.
  14. Goood! Now we need checkox and memo and we can replace entirre gui with yours!
  15. vR este cel mai vechi, cu cea mai multa experienta si cel mai RP server de MTA, daca vreti un server de calitate, vR este.
  16. Indeed, memo and comboox are pretty difficult and if not possible, comine actual gui in mta with your functions. We should let it for the last, until then, for progress bar: guiCreateProgressBar guiProgressBarGetProgress guiProgressBarSetProgress It is much easier and usefull. There is even a usefull function on wiki: dxDrawProgressBar or dxDrawLoading
  17. For label, the last functions needed are: guiLabelGetFontHeight guiLabelGetTextExtent You should also export the functions: <export function="dgsGetData" type="client" /> <export function="dgsSetData" type="client" /> They can be usefull. Also have you thought about doing something like ComboBoxes, ut more like this than the original gui
  18. Now that we are at label functions, we could do guiLabelSetHorizontalAlign and guiLabelSetVerticalAlign counterparts. This might work: function dgsDxLabelSetHorizontalAlign(label,align) assert(dgsGetType(label) == "dgs-dxlabel","@dgsDxLabelSetHorizontalAlign at argument 1, except a dgs-dxlabel got "..(dgsGetType(label) or type(label))) if tostring(align) then return dgsSetData(label,"rightbottom",{align or "center",dgsElementData[label].rightbottom[2] or "bottom"}) end end function dgsDxLabelSetVerticalAlign(label,align) assert(dgsGetType(label) == "dgs-dxlabel","@dgsDxLabelSetVerticalAlign at argument 1, except a dgs-dxlabel got "..(dgsGetType(label) or type(label))) if tostring(align) then return dgsSetData(label,"rightbottom",{dgsElementData[label].rightbottom[1] or "center",align or "bottom"}) end end
  19. Very good update! Now you need to make memo, checkbox, radio button and small functions, and everyone could change their entire gui's to this better looking one! Example of functions (not tested): function dgsDxLabelSetColor(label, r,g,b,a) if isElement(label) then dgsSetData(label,"textcolor",tocolor(r or 255,g or 255,b or 255,a or 255)) return true end return false end function dgsDxLabelGetColor(label, r,g,b,a) if isElement(label) then local r,g,b,a = dgsGetData(label,"textcolor") return r,g,b,a end return false end (in Core/label.lua)
  20. That would be awesome! Also you could make small extra features such as highlight of links or youtube links and when you click on it copy to clipboard with: function isURL( path ) if string.find( path, "http://", 1, true) or string.find(path, "https://", 1, true) or string.find(path, "www.", 1, true) then return true end return false end function isYoutube(url) if url then if isURL( url ) then if string.find(string.lower(url), "youtube") then return true end end end return false end
  21. Ar trebui puse si niste poze, si postat si la categoria resources.
  22. Just use similar to guiCreateEdit or do like this:
×
×
  • Create New...