-
Posts
3,389 -
Joined
-
Last visited
-
Days Won
55
Everything posted by Master_MTA
-
problem with this getPosition = dgsOOP.genOOPFnc("dgsGetPosition"), --oop another mistake when am trying to local pax,pay = pa.position.x , pa.position.y the pax is cool but pay is need to increase 25 to it to get real size i suggest to add parameters to dgsGetPosition To get The real height
-
function pairsByKeys (t,neg) local neg = neg or false local a = {} local s = {} for n in pairs(t) do table.insert(a,(neg and string.lower(n) ) or n) if (neg and string.sub(n,1,1) == string.upper(string.sub(n,1,1)) ) then s[string.lower(n)]=n end end table.sort(a) local i = 0 local iter = function () i = i + 1 if a[i] == nil then return nil else if (neg and s[a[i]] ) then return s[a[i]],t[s[a[i]]] else return a[i], t[a[i]] end end end return iter end example: local ta={ ['F']='hi', ['g'] = 'hello', ['a'] = 'yes', ['b'] = 'no', } --usage num 1 for k,v in pairsByKeys (t) do print(k,v) --[[ output F - hi a - yes b - no g - hello ]]-- end --usage num 2 neglecting letter case for k,v in pairsByKeys (t,true) do print(k,v) --[[ output a - yes b - no F - hi g - hello ]]-- end
-
sorry that was my mistake
-
np bro ur welcome
-
first thx for your help second i know that already but am telling him to update it in the GitHub project so when am trying to update the dgs after that there is no need to edit it every time i update it that's why am spamming here cuze my project totally depending on the dgs lib +_+ ah by the way my solution was like that function dgsGetVisible(dgsEle) assert(dgsIsDxElement(dgsEle),"Bad argument @dgsGetVisible at argument 1, expect a dgs-dxgui element got "..dgsGetType(dgsEle)) if dgsElementData[dgsEle].visible then local p = FatherTable[dgsEle] for i=1,5000 do if not p then break end if not dgsElementData[p].visible then return false end p = FatherTable[p] end return true end return false end he just forgot not word on this line if p then break end -- so i edit it to be if not p then break end
-
thx works there is a problem with visible part function dgsGetVisible(dgsEle) assert(dgsIsDxElement(dgsEle),"Bad argument @dgsGetVisible at argument 1, expect a dgs-dxgui element got "..dgsGetType(dgsEle)) if dgsElementData[dgsEle].visible then local p = FatherTable[dgsEle] for i=1,5000 do if p then break end if not dgsElementData[p].visible then return false end p = FatherTable[p] end return true end return false end debug : attemp to index field ? a nil value line 260 functions.Lua
-
oh also i tried to access to it with another way print(toJSON(element.getProperties(element))) same thing empty table + there is a problem with setting only not getting position or size by this way element.position.x = 10 --not working
-
there is a problem with the properties in oop you can't use element:getProperties()
-
[SELL] Hyper-script gaming | FiveM, MTA بالعربية
Master_MTA replied to el8rbawy's topic in Arabic / العربية
+_+ في افكار عندي بس خلني اكتفي بذا القدر عشان ما افتح عليك ستافه كبيره عالعموم شغل جيد بالتوفيق -
[SELL] Hyper-script gaming | FiveM, MTA بالعربية
Master_MTA replied to el8rbawy's topic in Arabic / العربية
واصل بالتوفيق اضافه بسيطه شغلك جيد لكن الfront end يختاج تعديلات بسيطه مثلا الكارد ديزان بالنسبه للباك اند فانصحك تستخدم paypal api غشان تخليه اوتوماتيك مب يدوي بحيث اللاعب يتبرع علطول خلاص يجيه بالحساب باللعبه او ايا كان الاكشن اللي بتاخذه -
الفكره ان ذا anti cheat detection من الميتا تقدر تشيله نهائيا يعني تخليه فاظي او تفعل انواع ممعينه
-
bindKey ("tab","both",function () guiSetVisible(window,not guiGetVisible(window) ) showCursor(guiGetVisible(window)) end)
-
ur welcome friend happy to help u
-
is this server is on local host and you trying to access to it from public domain? you can't unless you open ur router ports to allow others to access to this server
-
actually i don't understand what did u do in the drawing method so i will suppose my x,y,width,height and u can replace it later local mapPath = "image.png" local blipPath = "blip.png" local scx,scy = guiGetScreenSize() local width = 500 local height = 500 local x=( scx/2 ) - (width/2) local y=( scy/2 ) - (height/2) local blipWidth = 32 local blipHeight = 32 --let's start with the zoom in variables local zoomSensitivity = 1-- each scroll will zoom in 20 px of width and 10px of height local fullMapZoom = 0 function zoomFullMap(button, press) if (button == 'mouse_wheel_up') and (press == true) then fullMapZoom = fullMapZoom + zoomSensitivity elseif (button == 'mouse_wheel_down') and (press == true) then fullMapZoom = fullMapZoom - zoomSensitivity end end addEventHandler("onClientKey", root, zoomFullMap) addEventHandler("onClientRender", root, function() if fullMapZoom > 0 then dxDrawImageSection(x,y,width,height, fullMapZoom*10, fullMapZoom*5, width - (fullMapZoom*10), height - (fullMapZoom*5), imagePath) --now we done dealing with image so let's start work on blip am gonna do it for local player and u can do it for all players local worldPos = {getElementPosition(localPlayer)} local pos = {getScreenFromWorldPosition(unpack(worldPos))} local ratio = {(pos[1]/scx)*100,(pos[2]/scy)*100} local fPos = {ratio[1]*width,ratio[2]*height} dxDrawImage(x+fPos[1]-(fullMapZoom*10*2),y+fPos[2]-(fullMapZoom*5*2),blipWidth,blipHeight, blipPath, 0, 0, 0, -1, true) else dxDrawImage(x,y,width,height, imagePath, 0, 0, 0, -1, false) --now we done dealing with image so let's start work on blip am gonna do it for local player and u can do it for all players local worldPos = {getElementPosition(localPlayer)} local pos = {getScreenFromWorldPosition(unpack(worldPos))} local ratio = {(pos[1]/scx)*100,(pos[2]/scy)*100} local fPos = {ratio[1]*width,ratio[2]*height} dxDrawImage(x+fPos[1],y+fPos[2],blipWidth,blipHeight, blipPath, 0, 0, 0, -1, true) end end) try this am actually don't know if it's gonna work or not but test it and if there is any mistakes please post photo
-
same problem i can't see the photos maybe it's my internet connection
-
بالظبط هذا اللي قلته لو حدده لك بوقت ما راح يجيك مشاكل
-
ممتاز لكن غير محدد بوقت طريقة تفكير ممتازه وسليمه لكن المعضله هي انت هل تعرف اللوب يتكرر كل كم فتره زمنيه بحيث ان اللوب بيعتمد على بروسيسر اللاعب فبتفرق من لاعب للاعب فهمت علي هذي معضلة هذي الطريقه فقط
-
i need u to declare each parameter of this so am being able to help u
-
there is a problem with ur images
-
why not create ur own one it's not look like u r creating new language
-
u should learn about php a little <?php require_once('vendor/autoload.php'); use MultiTheftAuto\Sdk\Mta; use MultiTheftAuto\Sdk\Model\Server; use MultiTheftAuto\Sdk\Model\Authentication; $server = new Server('your ip', your port); $auth = new Authentication('your username', 'your password'); $mta = new Mta($server, $auth); $response = $mta->getResource('dev2')->call('getPlayersNumber'); var_dump($response); // or you can do like this echo $response[0];
-
display ur click zoom in btn code