Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.
GTAONLINE.PL
Tematy otagowane jako: mogła
1. jak zrobić żeby tylko policja mogła używać suszarki
nie wiem jak to zrobi? pom??cie pliska
client
[lua]
GUIEditor = {
button = {},
window = {}
}
addEventHandler("onClientResourceStart", resourceRoot,
function()
GUIEditor.window[6] = guiCreateWindow(496, 279, 383, 270, "Suszarka", false)
guiSetVisible(GUIEditor.window[6], false)
guiWindowSetSizable(GUIEditor.window[6], false)
guiSetAlpha(GUIEditor.window[6], 1.00)

GUIEditor.button[1] = guiCreateButton(99, 66, 166, 133, "We?nsuszarke", false, GUIEditor.window[6])
guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA")
end
)


marker = createMarker( 1568.36243, -1690.81848, 4.89063, "cylinder", 1, 0, 0, 255, 170 )


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(...