السلام عليكم ورحمت الله وبركاته مرحبا شباب انا جبت ماركر قروب بس ابي اعدل عليه ما اقدرت ابي احد يعدل عليها تصير قروب هذول اكواد
WndGang = guiCreateWindow(454, 215, 192, 331, "Car Panel", false)
-- guiSetAlpha( Wnd1, 1 )
buttonvGang = guiCreateButton(10, 281, 172, 26, "Close", false, WndGang)
button1vGang = guiCreateButton(10, 245, 172, 26, "Accept", false, WndGang)
labelGang = guiCreateLabel ( 0.1, 0.1, 0.9, 0.1, "get free car --- [Gta-ch]", false, WndGang )
showCursor(false)
guiSetVisible( WndGang, false )
guiWindowSetSizable( WndGang, false )
guiWindowSetMovable( WndGang, false )
vehiclesofcGroups =
{
{"Sultan ", 560},
{"NRG-500", 522},
{"Infernus", 411},
{"Turismo", 451},
{"Super GT", 506},
{"Jester", 559},
{"Elegy", 562},
{"Bullet", 541},
{"Maverick ", 487},
}
MavofcGroups =
{
{"Maverick ", 487},
{"Leviathan", 417},
}
gridGangs = guiCreateGridList(9, 25, 174, 210, false, WndGang)
gridGangsMav = guiCreateGridList(9, 25, 174, 210, false, WndGang)
guiGridListAddColumn(gridGangs, "", 1.0)
guiGridListAddColumn(gridGangsMav, "", 1.0)
for i = 1, 3 do
guiGridListAddRow(gridGangs)
guiGridListAddRow(gridGangsMav)
end
for i,vog in ipairs(vehiclesofcGroups) do
rowGangs = guiGridListAddRow(gridGangs)
--
guiGridListSetItemText(gridGangs, rowGangs, 1, tostring(vog[1]), false, false)
guiGridListSetItemData(gridGangs, rowGangs, 1, tonumber(vog[2]))
end
for i,mog in ipairs(MavofcGroups) do
rowGangsMav = guiGridListAddRow(gridGangsMav)
--
guiGridListSetItemText(gridGangsMav, rowGangsMav, 1, tostring(mog[1]), false, false)
guiGridListSetItemData(gridGangsMav, rowGangsMav, 1, tonumber(mog[2]))
end
function usePGroups()
local rowGangs, col = guiGridListGetSelectedItem(gridGangs)
if (rowGangs and col and rowGangs ~= -1 and col ~= -1) then
local model = tonumber(guiGridListGetItemData(gridGangs, rowGangs, 1))
if model ~= "" then
triggerServerEvent("CreVehiceGroupsAG", localPlayer, model)
guiSetVisible(WndGang,false)
showCursor(false)
end
end
local rowGangsMav, col = guiGridListGetSelectedItem(gridGangsMav)
if (rowGangsMav and col and rowGangsMav ~= -1 and col ~= -1) then
local model = tonumber(guiGridListGetItemData(gridGangsMav, rowGangsMav, 1))
if model ~= "" then
triggerServerEvent("CreVehiceGroupsAG", localPlayer, model)
guiSetVisible(WndGang,false)
showCursor(false)
end
end
end
addEventHandler("onClientGUIClick", button1vGang, usePGroups, false)
function closeGroups()
if (source == buttonvGang) then
guiSetVisible(WndGang,false)
showCursor(false)
end
end
addEventHandler("onClientGUIClick", buttonvGang, closeGroups)
function showGUIpvGroups()
guiSetVisible(WndGang,true)
guiSetVisible(gridGangsMav,false)
guiSetVisible(gridGangs,true)
showCursor(true)
end
addEvent("showGUIpvGroupsAG",true)
addEventHandler("showGUIpvGroupsAG", getRootElement(), showGUIpvGroups)
function showGUIpvGroupsMav()
guiSetVisible(WndGang,true)
guiSetVisible(gridGangsMav,true)
guiSetVisible(gridGangs,false)
showCursor(true)
end
addEvent("showGUIpvGroupsMavAG",true)
addEventHandler("showGUIpvGroupsMavAG", getRootElement(), showGUIpvGroupsMav)
قروب Group هاد حق فريق بس اعدل عليه ما اقدرت اعدل بس ابي احد يخليه بدل فريق يحطه للقروب حق
markerpv = createMarker( 1591.1999511719, -1710.1999511719, 4.9000000953674, "cylinder", 2, 0, 0, 255, 255 )
local vehicles = {}
function spawnVehp(id)
local x, y, z = getElementPosition(source)
if isElement(vehicles[source]) then destroyElement(vehicles[source]) end
vehicles[source] = createVehicle(487, 1568.9465332031 + 411, -1626.2987060547, 13.3828125)
warpPedIntoVehicle(source, vehicles[source])
end
addEvent("CreVehicePv",true)
addEventHandler("CreVehicePv", root, spawnVehp)
addEventHandler("onPlayerQuit", root,
function()
if isElement(vehicles[source]) then
destroyElement(vehicles[source])
vehicles[source] = nil
end
end)
function showGUIpv(hitPlayer)
if hitPlayer and getElementType(hitPlayer) == "player" then
if ( getPlayerTeam ( hitPlayer ) == getTeamFromName ( "" ) ) then
triggerClientEvent (hitPlayer,"showGUIpv",getRootElement(),hitPlayer)
else
end
end
end
addEventHandler("onMarkerHit",markerpv,showGUIpv)
نشاء الله اشوف ردود بسرعة