GUIEditor = {
button = {},
label = {}
}
addEventHandler("onClientResourceStart", resourceRoot,
vehiclesshop = guiCreateWindow(115, 203, 235, 264, "VEHICLES SHOP", false)
guiWindowSetSizable(vehiclesshop, false)
guiSetAlpha(vehiclesshop, 0.70)
guiSetProperty(vehiclesshop, "CaptionColour", "FF04F93E")
GUIEditor.label[1] = guiCreateLabel(58, 15, 123, 40, "Bicycles", false, vehiclesshop)
guiSetFont(GUIEditor.label[1], "sa-header")
guiLabelSetColor(GUIEditor.label[1], 7, 30, 247)
GUIEditor.button[1] = guiCreateButton(10, 65, 64, 29, "BIKE", false, vehiclesshop)
guiSetFont(GUIEditor.button[1], "default-bold-small")
guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFF607DD")
GUIEditor.button[2] = guiCreateButton(156, 65, 64, 29, "BMX", false, vehiclesshop)
guiSetFont(GUIEditor.button[2], "default-bold-small")
guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFF607DD")
GUIEditor.label[2] = guiCreateLabel(26, 98, 63, 23, "1500$", false, vehiclesshop)
guiSetFont(GUIEditor.label[2], "default-bold-small")
guiLabelSetColor(GUIEditor.label[2], 255, 0, 0)
GUIEditor.label[3] = guiCreateLabel(167, 98, 63, 23, "1500$", false, vehiclesshop)
guiSetFont(GUIEditor.label[3], "default-bold-small")
guiLabelSetColor(GUIEditor.label[3], 255, 0, 0)
GUIEditor.label[4] = guiCreateLabel(53, 111, 154, 38, "CARS", false, vehiclesshop)
guiSetFont(GUIEditor.label[4], "sa-header")
guiLabelSetColor(GUIEditor.label[4], 7, 30, 247)
GUIEditor.button[3] = guiCreateButton(12, 155, 91, 36, "SUPER GT", false, vehiclesshop)
guiSetFont(GUIEditor.button[3], "default-bold-small")
guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFF607DD")
GUIEditor.button[4] = guiCreateButton(134, 155, 91, 36, "ZR-350", false, vehiclesshop)
guiSetFont(GUIEditor.button[4], "default-bold-small")
guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFF607DD")
GUIEditor.button[5] = guiCreateButton(134, 208, 91, 36, "INFERNUS", false, vehiclesshop)
guiSetFont(GUIEditor.button[5], "default-bold-small")
guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FFF607DD")
GUIEditor.button[6] = guiCreateButton(12, 208, 91, 36, "SULTAN", false, vehiclesshop)
guiSetFont(GUIEditor.button[6], "default-bold-small")
guiSetProperty(GUIEditor.button[6], "NormalTextColour", "FFF607DD")
GUIEditor.label[5] = guiCreateLabel(33, 244, 70, 23, "13000$", false, vehiclesshop)
guiSetFont(GUIEditor.label[5], "default-bold-small")
guiLabelSetColor(GUIEditor.label[5], 255, 0, 0)
GUIEditor.label[6] = guiCreateLabel(33, 191, 70, 23, "20000$", false, vehiclesshop)
guiSetFont(GUIEditor.label[6], "default-bold-small")
guiLabelSetColor(GUIEditor.label[6], 255, 0, 0)
GUIEditor.label[7] = guiCreateLabel(155, 191, 70, 23, "20000$", false, vehiclesshop)
guiSetFont(GUIEditor.label[7], "default-bold-small")
guiLabelSetColor(GUIEditor.label[7], 255, 0, 0)
GUIEditor.label[8] = guiCreateLabel(155, 241, 70, 23, "20000$", false, vehiclesshop)
guiSetFont(GUIEditor.label[8], "default-bold-small")
guiLabelSetColor(GUIEditor.label[8], 255, 0, 0)
GUIEditor.button[7] = guiCreateButton(79, 65, 74, 29, "Mountain Bike", false, vehiclesshop)
guiSetFont(GUIEditor.button[7], "default-bold-small")
guiSetProperty(GUIEditor.button[7], "NormalTextColour", "FFF607DD")
GUIEditor.label[9] = guiCreateLabel(94, 98, 63, 23, "2500$", false, vehiclesshop)
guiSetFont(GUIEditor.label[9], "default-bold-small")
guiLabelSetColor(GUIEditor.label[9], 255, 0, 0)
end)
outputChatBox("شوب المركبات من صنع هنتر vehicles shop by hunter96 ",255,0,0,true)
outputChatBox("TO OPEN vehicles shop PRESS F7 ",255,0,0,true)
function myCommandHandler(thePlayer, command)
local b1 = getElementPosition(thePlayer)
if ( b1 >= 1500 ) then
takePlayerMoney(1500)
triggerServerEvent("onBuy",createVehicle ( 509, 0, 0, 0 )
outputChatBox("* تم شراء المركبة " .. name .. "",0,255,0,true)
else
outputChatBox("* ليس لديك المال الكافي ",255,0,0,true)
local b2 = getElementPosition(thePlayer)
if ( b2 >= 1500 ) then
takePlayerMoney(1500)
triggerServerEvent("onBuy",createVehicle ( 481, 0, 0, 0 )
outputChatBox("* تم شراء المركبة " .. name .. "",0,255,0,true)
else
outputChatBox("* ليس لديك المال الكافي ",255,0,0,true)
local b3 = getElementPosition(thePlayer)
if ( b3 >= 20000 ) then
takePlayerMoney(20000)
triggerServerEvent("onBuy",createVehicle ( 506, 0, 0, 0 )
outputChatBox("* تم شراء المركبة " .. name .. "",0,255,0,true)
else
outputChatBox("* ليس لديك المال الكافي ",255,0,0,true)
local b4 = getElementPosition(thePlayer)
if ( b4 >= 20000 ) then
takePlayerMoney(20000)
triggerServerEvent("onBuy",createVehicle ( 477, 0, 0, 0 )
outputChatBox("* تم شراء المركبة " .. name .. "",0,255,0,true)
else
outputChatBox("* ليس لديك المال الكافي ",255,0,0,true)
local b5 = getElementPosition(thePlayer)
if ( b5 >= 20000 ) then
takePlayerMoney(20000)
triggerServerEvent("onBuy",createVehicle ( 411, 0, 0, 0 )
outputChatBox("* تم شراء المركبة " .. name .. "",0,255,0,true)
else
outputChatBox("* ليس لديك المال الكافي ",255,0,0,true)
local b6 = getElementPosition(thePlayer)
if ( b6 >= 13000 ) then
takePlayerMoney(13000)
triggerServerEvent("onBuy",createVehicle ( 560, 0, 0, 0 )
outputChatBox("* تم شراء المركبة " .. name .. "",0,255,0,true)
else
outputChatBox("* ليس لديك المال الكافي ",255,0,0,true)
local b7 = getElementPosition(thePlayer)
if ( b7 >= 2500 ) then
takePlayerMoney(2500)
triggerServerEvent("onBuy",createVehicle ( 510, 0, 0, 0 )
outputChatBox("* تم شراء المركبة " .. name .. "",0,255,0,true)
else
outputChatBox("* ليس لديك المال الكافي ",255,0,0,true)
end
end)
جرب ماجربت