Witam chc? aby Gui i kursor pokaza?y si? po wej?ciu w marker, lecz nic nie wida?, zero b??d?w tak samo w debugscript.
Server:
[spoiler]
[lua]
local markerKupnaSkina = createMarker(161.30000305176, -83.900001525879, 1000.799987793, "cylinder", 1, 0,0,255,255)
function TeleportDoSkinShop(player)
if getElementType(player)=="player" then
if source == wejscie then
setElementPosition(player, 161.60000610352, -95.699996948242, 1001.799987793)
setElementInterior(player, 18)
setElementInterior(wyjscie, 18)
setElementInterior(sprzedawca, 18)
setElementInterior(markerKupnaSkina, 18)
setElementFrozen(player, true)
setTimer(setElementFrozen,30000,1,player,false)
end
end
end
addEventHandler("onMarkerHit", wejscie, TeleportDoSkinShop)
function WybierzSkina(player)
if getElementType(player)=="player" then
if source == markerKupnaSkina then
triggerClientEvent(player, "onSkinMarkerHit", player)
triggerClientEvent(player, "onClientResourceStart", player)
end
end
end
addEventHandler("onMarkerHit", markerKupnaSkina, WybierzSkina)
[/lua]
[/spoiler]
Client:
[spoiler]
[lua]
addEvent("onClientResourceStart", true)
addEventHandler("onClientResourceStart", resourceRoot,
function()
gridlist = guiCreateGridList(1350, 383, 236, 293, false)
guiGridListAddColumn(gridlist, "Skiny", 0.5)
guiGridListAddColumn(gridlist,... |