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: wyswietlanie
1. Wejście w marker, wyswietlanie gui i przesuwanie obiektu
Witam, pr?buj? zrobi? skrypt na przesuwanie si? obiektu (chodzi o drzwi) i chc? to zrobi? tak by po wejsciu w marker, wyswietla nam sie gui, jesli klikniemy "otworz" otwieraja sie drzwi, jesli "zamknij" to zamykaja. [lua]GUIEditor = {
button = {},
window = {}
}
addEventHandler("onClientResourceStart", resourceRoot,
function()
GUIEditor.window[1] = guiCreateWindow(1063, 423, 194, 308, "Otw?rz/zamknij drzwi PSP", false)
guiWindowSetSizable(GUIEditor.window[1], false)

GUIEditor.button[1] = guiCreateButton(29, 76, 139, 79, "Otw?rz", false, GUIEditor.window[1])
GUIEditor.button[2] = guiCreateButton(29, 189, 139, 79, "Zamknij", false, GUIEditor.window[1])
guiSetVisible(GUIEditor.window[1], false)
end
)

function isPlayerInPSP(plr)
local idb=getElementData(plr,'player:idb')
if not sid then return end

local result=exports['database']:dbGet('SELECT 1 FROM factions WHERE code=? AND idb=? LIMIT 1;', "PSP", idb)
if result[1] then
return true
else
return false
end
end

local gate = createObject ( 3089,-239.30, 1205.23, 19.74,0,0,90)
local marker = createMarker(-247.85, 1201.82, 18.59, 'cylinder', 1.5, 255, 255, 0, 170)
local marker2 = createMarker(-254.28, 1200.87, 18.59, 'cylinder', 1.5, 255, 255, 0, 170)
setElementDimension(gate,0)
setElementDimension(marker,0)
setElementDimension(marker2,0)


function hit(playerid)
i...