-
Posts
521 -
Joined
-
Last visited
Everything posted by Axel
-
Discuti cu liderul factiunii.
-
Ugh?
-
Daca e vR zici, forumul este: vr-rp.ro
-
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?
-
This script is awesome! You could make more corporatist features!
- 8 replies
-
- stock market
- stocks
-
(and 1 more)
Tagged with:
-
Pai iti scrie la logare..
-
I tested it and it works only on created objects. Is there a way around it to work on real world objects?
-
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?
-
Can it be used on the actual world trees?
-
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?
-
What is the status of memo? It is the only gui element stoppping me from reacing my entire gui with yours.
-
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.
-
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.
-
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
-
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
-
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
-
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)
-
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
-
[WIP][OPEN SOURCE] SOpen - MTA Roleplay
Axel replied to Simple0x47's topic in Resurse, moduri și mape
Ar trebui puse si niste poze, si postat si la categoria resources.- 4 replies
-
- open source
- sopen project
-
(and 3 more)
Tagged with: