shop = {
button = {},
window = {},
label = {}
}
local screenW, screenH = guiGetScreenSize()
shop.window[1] = guiCreateWindow((screenW - 756) / 2, (screenH - 545) / 2, 756, 545, "", false)
guiWindowSetSizable(shop.window[1], false)
guiSetAlpha(shop.window[1], 1.00)
shop.label[1] = guiCreateLabel(30, 31, 144, 24, "Du bist im Mafia Shop:", false, shop.window[1])
guiSetFont(shop.label[1], "clear-normal")
shop.label[2] = guiCreateLabel(180, 31, 122, 24, "Der name", false, shop.window[1])
guiSetFont(shop.label[2], "clear-normal")
shop.label[3] = guiCreateLabel(70, 83, 67, 25, "Pistolen", false, shop.window[1])
guiSetFont(shop.label[3], "clear-normal")
shop.button[1] = guiCreateButton(31, 118, 143, 42, "9mm Pistol", false, shop.window[1])
guiSetFont(shop.button[1], "default-bold-small")
guiSetProperty(shop.button[1], "NormalTextColour", "FFAAAAAA")
shop.button[2] = guiCreateButton(31, 170, 143, 42, "Desert eagle", false, shop.window[1])
guiSetFont(shop.button[2], "default-bold-small")
guiSetProperty(shop.button[2], "NormalTextColour", "FFAAAAAA")
shop.label[4] = guiCreateLabel(235, 83, 67, 25, "Gewehre", false, shop.window[1])
guiSetFont(shop.label[4], "clear-normal")
shop.button[3] = guiCreateButton(198, 118, 143, 42, "Mp5", false, shop.window[1])
guiSetFont(shop.button[3], "default-bold-small")
guiSetProperty(shop.button[3], "NormalTextColour", "FFAAAAAA")
shop.button[4] = guiCreateButton(198, 170, 143, 42, "Ak47", false, shop.window[1])
guiSetFont(shop.button[4], "default-bold-small")
guiSetProperty(shop.button[4], "NormalTextColour", "FFAAAAAA")
shop.button[5] = guiCreateButton(380, 150, 143, 42, "Schutzweste", false, shop.window[1])
guiSetFont(shop.button[5], "default-bold-small")
guiSetProperty(shop.button[5], "NormalTextColour", "FFAAAAAA")
shop.button[6] = guiCreateButton(704, 23, 42, 42, "X", false, shop.window[1])
guiSetFont(shop.button[6], "default-bold-small")
guiSetProperty(shop.button[6], "NormalTextColour", "FFFF0000")
guiSetVisible(shop.window[1],false)
local MafiaMarker = createMarker(735.09997558594,-1341.0999755859,12.5,"cylinder",1.2,255,0,0)
function HitMafiaShop (hitPlayer)
if (hitPlayer == localPlayer) then
if getElementData(hitPlayer,"Fraktion") == 5 then
guiSetVisible(shop.window[1],true)
showCursor(true)
guiSetText(shop.label[2],getPlayerName(hitPlayer))
else
outputChatBox("Du bist kein Mitglied der Mafia!", 180, 0, 0)
end
end
end
addEventHandler("onClientMarkerHit",MafiaMarker,HitMafiaShop)
Alles anzeigen