Witam. Chcia?bym si? dowiedzie? czy jest mo?liwo?? zwi?kszenia zasi?gu suszarki ?eby z wi?kszej odleg?o?ci od gracza/auta ju? pokazywa?o si? gui. Je?li tak To m?g?by mnie kto? nakierowa? jak takie co? zrobi??.
function hit(ele)
if source == marker then else return end
if getElementType( ele ) == "player" then else return end
if ele == getLocalPlayer() then else return end
if isElementWithinMarker ( ele, marker ) then else return end
guiSetVisible(GUIEditor.window[6], true)
showCursor(true)
end
addEventHandler("onClientMarkerHit", marker, hit)
function wezsuszare()
if source ~= GUIEditor.button[1] then return end
triggerServerEvent("wezsuszare2", localPlayer)
guiSetVisible(GUIEditor.window[6], false)
showCursor(false)
end
addEventHandler("onClientGUIClick", root, wezsuszare)[/lua]
server
[lua]addEvent("wezsuszare2", true)
addEventHandler(...
function isPedAiming ( thePedToCheck )
if isElement(thePedToCheck) then
if getElementType(thePedToCheck) == "player" or getElementType(thePedToCheck) == "ped" then
if getPedTask(thePedToCheck, "secondary", 0) == "TASK_SIMPLE_USE_GUN" then
return true
end
end
end
return false
end
function isRendering()
if option.actived == true then
if not element then return end
local vx,vy,vz=getElementVelocity(element)
mathSpeed=(vx^2+vy^2+vz^2)^0.5*1.8*100
if mathSpeed < 0 then return end
if value == "vehicle" then
local vid=getElementData(element,"vehicle:id") or "brak"
local driver=getElementData(element,"vehicle:driver") or "brak"
dxDrawText(string.format("%.02f", mathSpeed).." km/h", (809/1024)*w, (451/768)*h, (1000/1024)*w, (482/768)*h, tocolor(255, 255, 255, 255), (2.00/1280)*w, (2.00/720)*h, &q...