![](https://forum.multitheftauto.com/uploads/set_resources_22/84c1e40ea0e759e3f1505eb1788ddf3c_pattern.png)
itHyperoX
Members-
Posts
522 -
Joined
-
Last visited
-
Days Won
1
Everything posted by itHyperoX
-
@NeXuS™ its going to be another ExternalGaming server, with starting 5000000 premium point and 500000000000000 million dollars?
-
Hi. I'm trying to make a nice DXDRAW hud. I'm using the "guieditor" resource for that. The problem is, when i make the hud at 1600x900 res, its looks nice, but when i change my resoultion to 1920x1080, the hud is looks like blured out. Anybody can help me please with this? here is 1600x900 here is at 1920x1080p here is the script. (THIS IS ONLY because of testing. --————————————————————————————————————————————————————————— --————————————————————————————————————————————————————————— local screenW,screenH = guiGetScreenSize() function HUD () dxDrawLine((screenW * 0.5994) - 1, (screenH * 0.5456) - 1, (screenW * 0.5994) - 1, screenH * 0.7111, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.7481, (screenH * 0.5456) - 1, (screenW * 0.5994) - 1, (screenH * 0.5456) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine((screenW * 0.5994) - 1, screenH * 0.7111, screenW * 0.7481, screenH * 0.7111, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.7481, screenH * 0.7111, screenW * 0.7481, (screenH * 0.5456) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(screenW * 0.5994, screenH * 0.5456, screenW * 0.1487, screenH * 0.1656, tocolor(0, 0, 0, 100), false) dxDrawLine((screenW * 0.5994) - 1, (screenH * 0.5456) - 1, (screenW * 0.5994) - 1, screenH * 0.5733, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.7481, (screenH * 0.5456) - 1, (screenW * 0.5994) - 1, (screenH * 0.5456) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine((screenW * 0.5994) - 1, screenH * 0.5733, screenW * 0.7481, screenH * 0.5733, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(screenW * 0.7481, screenH * 0.5733, screenW * 0.7481, (screenH * 0.5456) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(screenW * 0.5994, screenH * 0.5456, screenW * 0.1487, screenH * 0.0278, tocolor(0, 0, 0, 100), false) dxDrawText("The time", screenW * 0.5994, screenH * 0.6833, screenW * 0.6581, screenH * 0.7111, tocolor(255, 255, 255, 255), 1.00, "default", "center", "center", false, false, false, false, false) dxDrawText("The date", screenW * 0.6894, screenH * 0.6833, screenW * 0.7481, screenH * 0.7111, tocolor(255, 255, 255, 255), 1.00, "default", "center", "center", false, false, false, false, false) end addEventHandler("onClientRender",getRootElement(),HUD)
-
nothing changed
-
i have the same problem
-
Hi guys. Today i made a hud, everything works perfect, but i got some debugscript error, i tried to fix it, but still flooding when i join. The Debug Error: sourceC.lua:295: attempt to compare boolen with number [DUP X899] here is the script: local playerMoney = getElementData(localPlayer,"account:handCash") local messages = { } addEventHandler ( "onClientRender", root, function ( ) local tick = getTickCount ( ) if ( playerMoney ~= getElementData(localPlayer,"account:handCash") ) then local pM = getElementData(localPlayer,"account:handCash") if ( pM > playerMoney ) then ---------------------------------------- Line 295. local diff = pM - playerMoney table.insert ( messages, { diff, true, tick + 5000, 180 } ) else local diff = playerMoney - pM table.insert ( messages, { diff, false, tick + 5000, 180 } ) end playerMoney = pM end if ( #messages > 3 ) then table.remove ( messages, 1 ) end for index, data in ipairs ( messages ) do local v1 = data[1] local v2 = data[2] local v3 = data[3] local v4 = data[4] if ( v2 ) then dxDrawText("+ $"..exports.wangExport:formatMoney(v1), (screenW * 0.8474) - 1, (screenH * 0.2241)-(index*-25) - 1, (screenW * 0.9385) - 1, (screenH * 0.2519)-(index*-25) - 1, tocolor(0, 0, 0, v4+75), 1.00, "pricedown", "left", "top", false, false, false, true, false) dxDrawText("+ $"..exports.wangExport:formatMoney(v1), (screenW * 0.8474) + 1, (screenH * 0.2241)-(index*-25) - 1, (screenW * 0.9385) + 1, (screenH * 0.2519)-(index*-25) - 1, tocolor(0, 0, 0, v4+75), 1.00, "pricedown", "left", "top", false, false, false, true, false) dxDrawText("+ $"..exports.wangExport:formatMoney(v1), (screenW * 0.8474) - 1, (screenH * 0.2241)-(index*-25) + 1, (screenW * 0.9385) - 1, (screenH * 0.2519)-(index*-25) + 1, tocolor(0, 0, 0, v4+75), 1.00, "pricedown", "left", "top", false, false, false, true, false) dxDrawText("+ $"..exports.wangExport:formatMoney(v1), (screenW * 0.8474) + 1, (screenH * 0.2241)-(index*-25) + 1, (screenW * 0.9385) + 1, (screenH * 0.2519)-(index*-25) + 1, tocolor(0, 0, 0, v4+75), 1.00, "pricedown", "left", "top", false, false, false, true, false) dxDrawText("#FFA500+ $"..exports.wangExport:formatMoney(v1), screenW * 0.8474, screenH * 0.2241-(index*-25), screenW * 0.9385, screenH * 0.2519-(index*-25), tocolor(255, 255, 255, v4+75), 1.00, "pricedown", "left", "top", false, false, false, true, false) else dxDrawText("- $"..exports.wangExport:formatMoney(v1), (screenW * 0.8474) - 1, (screenH * 0.2241)-(index*-25) - 1, (screenW * 0.9385) - 1, (screenH * 0.2519)-(index*-25) - 1, tocolor(0, 0, 0, v4+75), 1.00, "pricedown", "left", "top", false, false, false, true, false) dxDrawText("- $"..exports.wangExport:formatMoney(v1), (screenW * 0.8474) + 1, (screenH * 0.2241)-(index*-25) - 1, (screenW * 0.9385) + 1, (screenH * 0.2519)-(index*-25) - 1, tocolor(0, 0, 0, v4+75), 1.00, "pricedown", "left", "top", false, false, false, true, false) dxDrawText("- $"..exports.wangExport:formatMoney(v1), (screenW * 0.8474) - 1, (screenH * 0.2241)-(index*-25) + 1, (screenW * 0.9385) - 1, (screenH * 0.2519)-(index*-25) + 1, tocolor(0, 0, 0, v4+75), 1.00, "pricedown", "left", "top", false, false, false, true, false) dxDrawText("- $"..exports.wangExport:formatMoney(v1), (screenW * 0.8474) + 1, (screenH * 0.2241)-(index*-25) + 1, (screenW * 0.9385) + 1, (screenH * 0.2519)-(index*-25) + 1, tocolor(0, 0, 0, v4+75), 1.00, "pricedown", "left", "top", false, false, false, true, false) dxDrawText("#D75959- $"..exports.wangExport:formatMoney(v1), screenW * 0.8474, screenH * 0.2241-(index*-25), screenW * 0.9385, screenH * 0.2519-(index*-25), tocolor(255, 255, 255, v4+75), 1.00, "pricedown", "left", "top", false, false, false, true, false) end if ( tick >= v3 ) then messages[index][4] = v4-2 if ( v4 <= 25 ) then table.remove ( messages, index ) end end end end ) Thanks any help!
-
function dependent(player) local accountName = getAccountName ( getPlayerAccount ( player ) ) local hour = getAccountData (accountName, "Játszott idő-hours") if hour == 30 then aclGroupAddObject (aclGetGroup("Dependent"), "user."..accountName) end end
-
search the account system, then ctrl + f and search spawnPlayer That why you need your own resources
-
"AR -RP Scripter Team" another leaked OWL Gaming server. Learn how to make script then ask for help btw you can make it easy with setWaterLevel
-
setPedControlState
-
exports.global: just not a leaked script?
-
u making rp server without any lua. Goin to be sick
-
fixed thanks @3aGl3
-
Hi, i made a weaponshop it working full dxdraw. The problem is, when i click on my screen, but i'm not in the weaponshop marker i can buy a weapons from there. addEventHandler("onClientClick", root, function(key, state, cx, cy) if key == "left" and state == "down" then if isCursorInBox(screenW * 0.3302, screenH * 0.3500, screenW * 0.0620, screenH * 0.0370) then triggerServerEvent("giveM4",getLocalPlayer(),giveM4) end end end) addEventHandler("onClientClick", root, function(key, state, cx, cy) if key == "left" and state == "down" then if isCursorInBox(screenW * 0.5333, screenH * 0.5667, screenW * 0.0344, screenH * 0.0296) then removeEventHandler("onClientPreRender", getRootElement(), draw) showCursor(false) end end end) function isCursorInBox(left, top, width, height) if isCursorShowing() then cursorX, cursorY = getCursorPosition() cursorX, cursorY = cursorX*screenW, cursorY*screenH if cursorX >= left and cursorX <= left+width and cursorY >= top and cursorY <= top+height then return true end else return false end addEventHandler("onClientMarkerHit", shopmarker, function (p) if p == localPlayer then addEventHandler("onClientPreRender", getRootElement(), draw) showCursor(true) end end ) So. What i need to do, only the clicks work, when i'm on the marker ? If need, i can post the full client side.
-
post your code..
-
why you not using dxdraw ? So much better and easyer.
-
i talking about this: GUIEditor.window[1] = guiCreateWindow(0.33, 0.35, 0.22, 0.24, "", true) --Relative guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.button[1] = guiCreateButton(24, 185, 99, 40, "", false, GUIEditor.window[1]) --Absolute GUIEditor.button[2] = guiCreateButton(294, 185, 99, 40, "", false, GUIEditor.window[1]) --Absolute tihs work 100%
-
just make a gui "background" relative, then make all buttons to default, i dont know how its call
-
try with this addCommandHandler("setmydim",function (source,cmd,dim) local dim = tonumber(dim) if dim then setElementDimension(source,dim) end end)
-
i succesfully fixed, thanks anyway.