Jump to content

مشكلة في لوحة


DaHoM

Recommended Posts

السلام عليكم ورحمة الله وبركاتة

بدون مقدمة 

انا غيرت حجم لوحة القروبات حقت الاعبين بس الحين ما عاد يظهر اسماء الاعبين فيها ويقلي 

 ERROR: Server triggered clientside event myGroupList, but event is not added clientside

 

ممكن مساعدة 

Edited by DaHoM
Link to comment
3 minutes ago, DaHoM said:

السلام عليكم ورحمة الله وبركاتة

بدون مقدمة 

انا غيرت حجم لوحة القروبات حقت الاعبين بس الحين ما عاد يظهر اسماء الاعبين فيها ويقلي 

 ERROR: Server triggered clientside event myGroupList, but event is not added clientside

 

ممكن مساعدة 

اطرح الكلنت سايد في اخطاء

  • Like 1
Link to comment
setTimer(function()
	local myGroup = getElementData(localPlayer, "Group")
	if myGroup then
		if guiCheckBoxGetSelected(checkBlipAlliances) then
			for i, player in ipairs(getElementsByType("player")) do
				local playerTeam = getElementData(player, "Group")
				if player ~= localPlayer and activedAlliances[playerTeam] == true then
					if not groupAlliancesBlipTable[player] then
						groupAlliancesBlipTable[player] = createBlipAttachedTo(player, 62)
					end
				else
					if groupAlliancesBlipTable[player] then
						destroyElement(groupAlliancesBlipTable[player])
						groupAlliancesBlipTable[player] = nil
					end
				end
			end
			for player, blip in pairs(groupAlliancesBlipTable) do
				local playerTeam = getElementData(player, "Group")
				if not isElement(player) or activedAlliances[playerTeam] ~= true  then
					destroyElement(groupAlliancesBlipTable[player])
					groupAlliancesBlipTable[player] = nil
				end
			end
		else
			for player, blip in pairs(groupAlliancesBlipTable) do
				destroyElement(groupAlliancesBlipTable[player])
				groupAlliancesBlipTable[player] = nil
			end
		end
	else
		for player, blip in pairs(groupAlliancesBlipTable) do
			destroyElement(groupAlliancesBlipTable[player])
			groupAlliancesBlipTable[player] = nil
		end
	end
end, 500, 0)

function on_MyGroup_MemberClick()
  if source == Members_Group_Button then
    guiSetVisible(MyGroup_Members_Window, not guiGetVisible(MyGroup_Members_Window))
    guiGridListClear(MyGroup_Members_Grid)
    guiBringToFront(MyGroup_Members_Window)
    triggerServerEvent("Request_myGroup_MembersList", localPlayer, getElementData(localPlayer, "Group"))
	elseif source == MuteUnMute_Button then
	playSoundFrontEnd ( 30 )
	guiSetEnabled(MuteUnMute_Button,false)
	setTimer(guiSetEnabled,5000,1,MuteUnMute_Button,true)
	local accName = guiGridListGetItemText(MyGroup_Members_Grid, guiGridListGetSelectedItem(MyGroup_Members_Grid), 2)
	if accName and accName ~= "" then
	triggerServerEvent("chgMuteStat", localPlayer, getElementData(localPlayer, "Group"), accName)
	guiSetEnabled(MuteUnMute_Button, false)
	setTimer(guiSetEnabled, 1000, 1, MuteUnMute_Button, true)
	else
	exports["guimessages"]:outputClient("[Group-System] : #FF0000Please Select The Player From list !",0,255,255)
	end
	elseif source == Skin_Button then
		guiSetVisible(skinWnd, not guiGetVisible(skinWnd))
		guiBringToFront(skinWnd)
	elseif source == skinGridList then
		local ID = guiGridListGetItemText(source, guiGridListGetSelectedItem(source), 1)
		if ID and ID ~= "" then
			guiStaticImageLoadImage(skinIMG, "Skins/"..ID..".jpg")
		end
	elseif source == saveSkin_Button then
		local ID = guiGridListGetItemText(skinGridList, guiGridListGetSelectedItem(skinGridList), 1)
		if ID and ID ~= "" then
			triggerServerEvent("setTheGroupSkin", localPlayer, getElementData(localPlayer, "Group"), ID)
			guiSetVisible(skinWnd, false)
		end
	elseif source == AutoSkin_Button then
	triggerServerEvent("AutoTheGroupSkin", localPlayer, getElementData(localPlayer, "Group"))
	elseif source == closeSkin_Button then
		guiSetVisible(skinWnd, false)
	elseif source == MyGroup_Members_Grid then
		getGroupRanks(guiGridListGetItemText(MyGroup_Members_Grid, guiGridListGetSelectedItem(MyGroup_Members_Grid),3))
		local Name = guiGridListGetItemText(MyGroup_Members_Grid,guiGridListGetSelectedItem(MyGroup_Members_Grid),1)
		if Name ~= "" and Name ~= getPlayerName(localPlayer) and (memberRankID <= currentRankID) then
			if PermissionTable["2"] then
				guiSetEnabled(Promote_Button, true)
			else
				guiSetEnabled(Promote_Button, false)
			end
			if PermissionTable["3"] then
				guiSetEnabled(Demote_Button, true)
			else
				guiSetEnabled(Demote_Button, false)
			end
			if PermissionTable["14"] then
				guiSetEnabled(WL_Button, true)
			else
				guiSetEnabled(WL_Button, false)
			end
		else
			guiSetEnabled(Promote_Button, false)
			guiSetEnabled(Demote_Button, false)
			guiSetEnabled(WL_Button, false)
		end
	elseif source == Promote_Button then
		local Account = guiGridListGetItemText(MyGroup_Members_Grid,guiGridListGetSelectedItem(MyGroup_Members_Grid),2)
		if Account ~= "" then
			getGroupRanks(guiGridListGetItemText(MyGroup_Members_Grid, guiGridListGetSelectedItem(MyGroup_Members_Grid),3))
			local Name = guiGridListGetItemText(MyGroup_Members_Grid,guiGridListGetSelectedItem(MyGroup_Members_Grid),1)
			if Name ~= "" and Name ~= getPlayerName(localPlayer) and (memberRankID <= currentRankID) then
				guiSetVisible(Promote_Demote_Window, true)
				guiBringToFront(Promote_Demote_Window)
				guiSetText(Promote_Demote_Window, "Promote Player")
				setElementData(Promote_Demote_Window, "Who", Account, false)
				guiSetText(Promote_Demote_Name, "Name: "..guiGridListGetItemText(MyGroup_Members_Grid,guiGridListGetSelectedItem(MyGroup_Members_Grid),1))
				guiSetText(Promote_Demote_AccountName, "Account Name: "..Account)
				guiSetText(Promote_Demote_Rank, "Current Rank: "..guiGridListGetItemText(MyGroup_Members_Grid,guiGridListGetSelectedItem(MyGroup_Members_Grid),3))
				guiSetText(Promote_Demote_Button, "Promote")
				guiComboBoxClear(Promote_Demote_Combobox)
				if PermissionTable["2"] then
					for i, rrr in ipairs(getGroupRanks(guiGridListGetItemText(MyGroup_Members_Grid, guiGridListGetSelectedItem(MyGroup_Members_Grid),3))) do
						if PermissionTable["4"] then
							if (rrr[1] <= currentRankID) and (rrr[1] > memberRankID) then
								guiComboBoxAddItem(Promote_Demote_Combobox, rrr[2])
							end
						else
							if (rrr[1] < currentRankID) and (rrr[1] > memberRankID) then
								guiComboBoxAddItem(Promote_Demote_Combobox, rrr[2])
							end
						end
					end
				end
			end
		end
	elseif source == Demote_Button then
		local Account = guiGridListGetItemText(MyGroup_Members_Grid,guiGridListGetSelectedItem(MyGroup_Members_Grid),2)
		if Account ~= "" then
			getGroupRanks(guiGridListGetItemText(MyGroup_Members_Grid, guiGridListGetSelectedItem(MyGroup_Members_Grid),3))
			local Name = guiGridListGetItemText(MyGroup_Members_Grid,guiGridListGetSelectedItem(MyGroup_Members_Grid),1)
			if Name ~= "" and Name ~= getPlayerName(localPlayer) and (memberRankID <= currentRankID) then
				guiSetVisible(Promote_Demote_Window, true)
				guiBringToFront(Promote_Demote_Window)
				guiSetText(Promote_Demote_Window, "Demote Player")
				setElementData(Promote_Demote_Window, "Who", Account, false)
				guiSetText(Promote_Demote_Name, "Name: "..guiGridListGetItemText(MyGroup_Members_Grid,guiGridListGetSelectedItem(MyGroup_Members_Grid),1))
				guiSetText(Promote_Demote_AccountName, "Account Name: "..Account)
				guiSetText(Promote_Demote_Rank, "Current Rank: "..guiGridListGetItemText(MyGroup_Members_Grid,guiGridListGetSelectedItem(MyGroup_Members_Grid),3))
				guiSetText(Promote_Demote_Button, "Demote")
				guiComboBoxClear(Promote_Demote_Combobox)
				if PermissionTable["3"] then
					guiComboBoxAddItem(Promote_Demote_Combobox, "Kick this player")
				end
				if PermissionTable["1"] then
					for i, rrr in ipairs(getGroupRanks(guiGridListGetItemText(MyGroup_Members_Grid, guiGridListGetSelectedItem(MyGroup_Members_Grid),3))) do
						if PermissionTable["9"] then
							if (memberRankID <= currentRankID) and (rrr[1] < memberRankID) then
								guiComboBoxAddItem(Promote_Demote_Combobox, rrr[2])
							end
						else
							if (memberRankID < currentRankID) and (rrr[1] < memberRankID) then
								guiComboBoxAddItem(Promote_Demote_Combobox, rrr[2])
							end
						end
					end
				end
			end
		end
  elseif source == Promote_Demote_Button then
    Reason = guiGetText(Promote_Demote_Edit)
    if Reason == "" or Reason:byte(1) == 32 then
      Reason = "No Reason"
    end
    if guiGetText(source) == "Promote" then
      local Promote = guiComboBoxGetItemText(Promote_Demote_Combobox, guiComboBoxGetSelected(Promote_Demote_Combobox))
      if Promote ~= "" and Promote ~= "Choose a rank" then
        triggerServerEvent("Promote_Demote", localPlayer, "Promote", getElementData(Promote_Demote_Window, "Who"), Promote, guiGridListGetItemText(MyGroup_Members_Grid, guiGridListGetSelectedItem(MyGroup_Members_Grid), 3), Reason)
        guiSetVisible(Promote_Demote_Window, false)
      end
    elseif guiGetText(source) == "Demote" then
      local Demote = guiComboBoxGetItemText(Promote_Demote_Combobox, guiComboBoxGetSelected(Promote_Demote_Combobox))
      if Demote ~= "" and Demote ~= "Choose a rank" then
        triggerServerEvent("Promote_Demote", localPlayer, "Demote", getElementData(Promote_Demote_Window, "Who"), Demote, guiGridListGetItemText(MyGroup_Members_Grid, guiGridListGetSelectedItem(MyGroup_Members_Grid), 3), Reason)
        guiSetVisible(Promote_Demote_Window, false)
      end
    end
  elseif source == Promote_Demote_Cancel then
    guiSetVisible(Promote_Demote_Window, false)
  elseif source == WL_Button then
    local Name = guiGridListGetItemText(MyGroup_Members_Grid, guiGridListGetSelectedItem(MyGroup_Members_Grid), 1)
    if Name ~= "" then
      local currentLevel = guiGridListGetItemText(MyGroup_Members_Grid, guiGridListGetSelectedItem(MyGroup_Members_Grid), 5)
      guiSetVisible(Warn_Window, true)
      guiBringToFront(Warn_Window)
      guiSetText(Warn_Window, "Set (" .. Name .. ") Warning level")
      guiSetText(Warn_Edit, string.sub(currentLevel, 1, #currentLevel - 1))
      guiProgressBarSetProgress(Warn_Bar, string.sub(currentLevel, 1, #currentLevel - 1))
      setElementData(Warn_Window, "Who", guiGridListGetItemText(MyGroup_Members_Grid, guiGridListGetSelectedItem(MyGroup_Members_Grid), 2))
    end
  elseif source == SetWarn_Button then
    local currentLevel = guiGridListGetItemText(MyGroup_Members_Grid, guiGridListGetSelectedItem(MyGroup_Members_Grid), 5)
    local warnLevel = tonumber(guiGetText(Warn_Edit)) or 0
    local currentLevel = tonumber(string.sub(currentLevel, 1, #currentLevel - 1))
    if warnLevel ~= currentLevel then
      Reason = guiGetText(Warn_Reason_Edit)
      if Reason == "" or Reason:byte(1) == 32 then
        Reason = "No Reason"
      end
      guiSetVisible(Warn_Window, false)
      if warnLevel > currentLevel then
        oLevel = "+" .. math.abs(currentLevel - warnLevel)
      else
        oLevel = "-" .. currentLevel - warnLevel
      end
      triggerServerEvent("setWarningLevel", localPlayer, getElementData(Warn_Window, "Who"), warnLevel, oLevel, Reason)
    end
  elseif source == CancelWarn_Button then
    guiSetVisible(Warn_Window, false)
  elseif source == MyGroup_Members_Close then
    guiSetVisible(MyGroup_Members_Window, not guiGetVisible(MyGroup_Members_Window))
    guiGridListClear(MyGroup_Members_Grid)
elseif source == Group_Bank_Button then
playSoundFrontEnd ( 30 )
guiSetEnabled(Group_Bank_Button,false)
setTimer(guiSetEnabled,5000,1,Group_Bank_Button,true)
guiSetVisible(GroupBank_Window, not guiGetVisible(GroupBank_Window))
guiBringToFront(GroupBank_Window)
guiSetText(GroupBank_Deposit_Edit,"0")
guiSetText(GroupBank_Withdraw_Edit,"0")
guiSetText(GroupBank_GiveMember_Edit,"0")
guiSetText(GroupBank_GiveAll_Edit,"0")
guiSetText(GroupBank_GiveGroup_Edit,"0")
guiSetText(GroupBank_GiveGroup_Edit2,"GroupName")
triggerServerEvent("getGroupBalance", localPlayer)
triggerServerEvent("GroupMemberGiveMoney", localPlayer)
elseif source == GroupBank_Deposit_Button then
if getPlayerPing(localPlayer) < 500 then
playSoundFrontEnd ( 30 )
guiSetEnabled(GroupBank_Deposit_Button,false)
setTimer(guiSetEnabled,5000,1,GroupBank_Deposit_Button,true)
local money = tonumber(guiGetText(GroupBank_Deposit_Edit)) or 0
if money > 0 then
triggerServerEvent("DepositMoneyInGroupBank", localPlayer, money)
guiSetText(GroupBank_Deposit_Edit,"0")
setTimer(function()
triggerServerEvent("getGroupBalance", localPlayer)
end,1000,1)
end
end
    -- ذا الكود الي تعلق بالجيد لست حقت الاعضاء

 

1 minute ago, killerProject said:

اعرض علينا الجزء اللي انت عدلت عليه طيب

الاعضاء بطلو يظهرو باللوحة وبس  ممكن تصلحلي اياه ^_^

توخذ اللوحة؟؟؟

Link to comment
Just now, DaHoM said:

setTimer(function()
	local myGroup = getElementData(localPlayer, "Group")
	if myGroup then
		if guiCheckBoxGetSelected(checkBlipAlliances) then
			for i, player in ipairs(getElementsByType("player")) do
				local playerTeam = getElementData(player, "Group")
				if player ~= localPlayer and activedAlliances[playerTeam] == true then
					if not groupAlliancesBlipTable[player] then
						groupAlliancesBlipTable[player] = createBlipAttachedTo(player, 62)
					end
				else
					if groupAlliancesBlipTable[player] then
						destroyElement(groupAlliancesBlipTable[player])
						groupAlliancesBlipTable[player] = nil
					end
				end
			end
			for player, blip in pairs(groupAlliancesBlipTable) do
				local playerTeam = getElementData(player, "Group")
				if not isElement(player) or activedAlliances[playerTeam] ~= true  then
					destroyElement(groupAlliancesBlipTable[player])
					groupAlliancesBlipTable[player] = nil
				end
			end
		else
			for player, blip in pairs(groupAlliancesBlipTable) do
				destroyElement(groupAlliancesBlipTable[player])
				groupAlliancesBlipTable[player] = nil
			end
		end
	else
		for player, blip in pairs(groupAlliancesBlipTable) do
			destroyElement(groupAlliancesBlipTable[player])
			groupAlliancesBlipTable[player] = nil
		end
	end
end, 500, 0)

function on_MyGroup_MemberClick()
  if source == Members_Group_Button then
    guiSetVisible(MyGroup_Members_Window, not guiGetVisible(MyGroup_Members_Window))
    guiGridListClear(MyGroup_Members_Grid)
    guiBringToFront(MyGroup_Members_Window)
    triggerServerEvent("Request_myGroup_MembersList", localPlayer, getElementData(localPlayer, "Group"))
	elseif source == MuteUnMute_Button then
	playSoundFrontEnd ( 30 )
	guiSetEnabled(MuteUnMute_Button,false)
	setTimer(guiSetEnabled,5000,1,MuteUnMute_Button,true)
	local accName = guiGridListGetItemText(MyGroup_Members_Grid, guiGridListGetSelectedItem(MyGroup_Members_Grid), 2)
	if accName and accName ~= "" then
	triggerServerEvent("chgMuteStat", localPlayer, getElementData(localPlayer, "Group"), accName)
	guiSetEnabled(MuteUnMute_Button, false)
	setTimer(guiSetEnabled, 1000, 1, MuteUnMute_Button, true)
	else
	exports["guimessages"]:outputClient("[Group-System] : #FF0000Please Select The Player From list !",0,255,255)
	end
	elseif source == Skin_Button then
		guiSetVisible(skinWnd, not guiGetVisible(skinWnd))
		guiBringToFront(skinWnd)
	elseif source == skinGridList then
		local ID = guiGridListGetItemText(source, guiGridListGetSelectedItem(source), 1)
		if ID and ID ~= "" then
			guiStaticImageLoadImage(skinIMG, "Skins/"..ID..".jpg")
		end
	elseif source == saveSkin_Button then
		local ID = guiGridListGetItemText(skinGridList, guiGridListGetSelectedItem(skinGridList), 1)
		if ID and ID ~= "" then
			triggerServerEvent("setTheGroupSkin", localPlayer, getElementData(localPlayer, "Group"), ID)
			guiSetVisible(skinWnd, false)
		end
	elseif source == AutoSkin_Button then
	triggerServerEvent("AutoTheGroupSkin", localPlayer, getElementData(localPlayer, "Group"))
	elseif source == closeSkin_Button then
		guiSetVisible(skinWnd, false)
	elseif source == MyGroup_Members_Grid then
		getGroupRanks(guiGridListGetItemText(MyGroup_Members_Grid, guiGridListGetSelectedItem(MyGroup_Members_Grid),3))
		local Name = guiGridListGetItemText(MyGroup_Members_Grid,guiGridListGetSelectedItem(MyGroup_Members_Grid),1)
		if Name ~= "" and Name ~= getPlayerName(localPlayer) and (memberRankID <= currentRankID) then
			if PermissionTable["2"] then
				guiSetEnabled(Promote_Button, true)
			else
				guiSetEnabled(Promote_Button, false)
			end
			if PermissionTable["3"] then
				guiSetEnabled(Demote_Button, true)
			else
				guiSetEnabled(Demote_Button, false)
			end
			if PermissionTable["14"] then
				guiSetEnabled(WL_Button, true)
			else
				guiSetEnabled(WL_Button, false)
			end
		else
			guiSetEnabled(Promote_Button, false)
			guiSetEnabled(Demote_Button, false)
			guiSetEnabled(WL_Button, false)
		end
	elseif source == Promote_Button then
		local Account = guiGridListGetItemText(MyGroup_Members_Grid,guiGridListGetSelectedItem(MyGroup_Members_Grid),2)
		if Account ~= "" then
			getGroupRanks(guiGridListGetItemText(MyGroup_Members_Grid, guiGridListGetSelectedItem(MyGroup_Members_Grid),3))
			local Name = guiGridListGetItemText(MyGroup_Members_Grid,guiGridListGetSelectedItem(MyGroup_Members_Grid),1)
			if Name ~= "" and Name ~= getPlayerName(localPlayer) and (memberRankID <= currentRankID) then
				guiSetVisible(Promote_Demote_Window, true)
				guiBringToFront(Promote_Demote_Window)
				guiSetText(Promote_Demote_Window, "Promote Player")
				setElementData(Promote_Demote_Window, "Who", Account, false)
				guiSetText(Promote_Demote_Name, "Name: "..guiGridListGetItemText(MyGroup_Members_Grid,guiGridListGetSelectedItem(MyGroup_Members_Grid),1))
				guiSetText(Promote_Demote_AccountName, "Account Name: "..Account)
				guiSetText(Promote_Demote_Rank, "Current Rank: "..guiGridListGetItemText(MyGroup_Members_Grid,guiGridListGetSelectedItem(MyGroup_Members_Grid),3))
				guiSetText(Promote_Demote_Button, "Promote")
				guiComboBoxClear(Promote_Demote_Combobox)
				if PermissionTable["2"] then
					for i, rrr in ipairs(getGroupRanks(guiGridListGetItemText(MyGroup_Members_Grid, guiGridListGetSelectedItem(MyGroup_Members_Grid),3))) do
						if PermissionTable["4"] then
							if (rrr[1] <= currentRankID) and (rrr[1] > memberRankID) then
								guiComboBoxAddItem(Promote_Demote_Combobox, rrr[2])
							end
						else
							if (rrr[1] < currentRankID) and (rrr[1] > memberRankID) then
								guiComboBoxAddItem(Promote_Demote_Combobox, rrr[2])
							end
						end
					end
				end
			end
		end
	elseif source == Demote_Button then
		local Account = guiGridListGetItemText(MyGroup_Members_Grid,guiGridListGetSelectedItem(MyGroup_Members_Grid),2)
		if Account ~= "" then
			getGroupRanks(guiGridListGetItemText(MyGroup_Members_Grid, guiGridListGetSelectedItem(MyGroup_Members_Grid),3))
			local Name = guiGridListGetItemText(MyGroup_Members_Grid,guiGridListGetSelectedItem(MyGroup_Members_Grid),1)
			if Name ~= "" and Name ~= getPlayerName(localPlayer) and (memberRankID <= currentRankID) then
				guiSetVisible(Promote_Demote_Window, true)
				guiBringToFront(Promote_Demote_Window)
				guiSetText(Promote_Demote_Window, "Demote Player")
				setElementData(Promote_Demote_Window, "Who", Account, false)
				guiSetText(Promote_Demote_Name, "Name: "..guiGridListGetItemText(MyGroup_Members_Grid,guiGridListGetSelectedItem(MyGroup_Members_Grid),1))
				guiSetText(Promote_Demote_AccountName, "Account Name: "..Account)
				guiSetText(Promote_Demote_Rank, "Current Rank: "..guiGridListGetItemText(MyGroup_Members_Grid,guiGridListGetSelectedItem(MyGroup_Members_Grid),3))
				guiSetText(Promote_Demote_Button, "Demote")
				guiComboBoxClear(Promote_Demote_Combobox)
				if PermissionTable["3"] then
					guiComboBoxAddItem(Promote_Demote_Combobox, "Kick this player")
				end
				if PermissionTable["1"] then
					for i, rrr in ipairs(getGroupRanks(guiGridListGetItemText(MyGroup_Members_Grid, guiGridListGetSelectedItem(MyGroup_Members_Grid),3))) do
						if PermissionTable["9"] then
							if (memberRankID <= currentRankID) and (rrr[1] < memberRankID) then
								guiComboBoxAddItem(Promote_Demote_Combobox, rrr[2])
							end
						else
							if (memberRankID < currentRankID) and (rrr[1] < memberRankID) then
								guiComboBoxAddItem(Promote_Demote_Combobox, rrr[2])
							end
						end
					end
				end
			end
		end
  elseif source == Promote_Demote_Button then
    Reason = guiGetText(Promote_Demote_Edit)
    if Reason == "" or Reason:byte(1) == 32 then
      Reason = "No Reason"
    end
    if guiGetText(source) == "Promote" then
      local Promote = guiComboBoxGetItemText(Promote_Demote_Combobox, guiComboBoxGetSelected(Promote_Demote_Combobox))
      if Promote ~= "" and Promote ~= "Choose a rank" then
        triggerServerEvent("Promote_Demote", localPlayer, "Promote", getElementData(Promote_Demote_Window, "Who"), Promote, guiGridListGetItemText(MyGroup_Members_Grid, guiGridListGetSelectedItem(MyGroup_Members_Grid), 3), Reason)
        guiSetVisible(Promote_Demote_Window, false)
      end
    elseif guiGetText(source) == "Demote" then
      local Demote = guiComboBoxGetItemText(Promote_Demote_Combobox, guiComboBoxGetSelected(Promote_Demote_Combobox))
      if Demote ~= "" and Demote ~= "Choose a rank" then
        triggerServerEvent("Promote_Demote", localPlayer, "Demote", getElementData(Promote_Demote_Window, "Who"), Demote, guiGridListGetItemText(MyGroup_Members_Grid, guiGridListGetSelectedItem(MyGroup_Members_Grid), 3), Reason)
        guiSetVisible(Promote_Demote_Window, false)
      end
    end
  elseif source == Promote_Demote_Cancel then
    guiSetVisible(Promote_Demote_Window, false)
  elseif source == WL_Button then
    local Name = guiGridListGetItemText(MyGroup_Members_Grid, guiGridListGetSelectedItem(MyGroup_Members_Grid), 1)
    if Name ~= "" then
      local currentLevel = guiGridListGetItemText(MyGroup_Members_Grid, guiGridListGetSelectedItem(MyGroup_Members_Grid), 5)
      guiSetVisible(Warn_Window, true)
      guiBringToFront(Warn_Window)
      guiSetText(Warn_Window, "Set (" .. Name .. ") Warning level")
      guiSetText(Warn_Edit, string.sub(currentLevel, 1, #currentLevel - 1))
      guiProgressBarSetProgress(Warn_Bar, string.sub(currentLevel, 1, #currentLevel - 1))
      setElementData(Warn_Window, "Who", guiGridListGetItemText(MyGroup_Members_Grid, guiGridListGetSelectedItem(MyGroup_Members_Grid), 2))
    end
  elseif source == SetWarn_Button then
    local currentLevel = guiGridListGetItemText(MyGroup_Members_Grid, guiGridListGetSelectedItem(MyGroup_Members_Grid), 5)
    local warnLevel = tonumber(guiGetText(Warn_Edit)) or 0
    local currentLevel = tonumber(string.sub(currentLevel, 1, #currentLevel - 1))
    if warnLevel ~= currentLevel then
      Reason = guiGetText(Warn_Reason_Edit)
      if Reason == "" or Reason:byte(1) == 32 then
        Reason = "No Reason"
      end
      guiSetVisible(Warn_Window, false)
      if warnLevel > currentLevel then
        oLevel = "+" .. math.abs(currentLevel - warnLevel)
      else
        oLevel = "-" .. currentLevel - warnLevel
      end
      triggerServerEvent("setWarningLevel", localPlayer, getElementData(Warn_Window, "Who"), warnLevel, oLevel, Reason)
    end
  elseif source == CancelWarn_Button then
    guiSetVisible(Warn_Window, false)
  elseif source == MyGroup_Members_Close then
    guiSetVisible(MyGroup_Members_Window, not guiGetVisible(MyGroup_Members_Window))
    guiGridListClear(MyGroup_Members_Grid)
elseif source == Group_Bank_Button then
playSoundFrontEnd ( 30 )
guiSetEnabled(Group_Bank_Button,false)
setTimer(guiSetEnabled,5000,1,Group_Bank_Button,true)
guiSetVisible(GroupBank_Window, not guiGetVisible(GroupBank_Window))
guiBringToFront(GroupBank_Window)
guiSetText(GroupBank_Deposit_Edit,"0")
guiSetText(GroupBank_Withdraw_Edit,"0")
guiSetText(GroupBank_GiveMember_Edit,"0")
guiSetText(GroupBank_GiveAll_Edit,"0")
guiSetText(GroupBank_GiveGroup_Edit,"0")
guiSetText(GroupBank_GiveGroup_Edit2,"GroupName")
triggerServerEvent("getGroupBalance", localPlayer)
triggerServerEvent("GroupMemberGiveMoney", localPlayer)
elseif source == GroupBank_Deposit_Button then
if getPlayerPing(localPlayer) < 500 then
playSoundFrontEnd ( 30 )
guiSetEnabled(GroupBank_Deposit_Button,false)
setTimer(guiSetEnabled,5000,1,GroupBank_Deposit_Button,true)
local money = tonumber(guiGetText(GroupBank_Deposit_Edit)) or 0
if money > 0 then
triggerServerEvent("DepositMoneyInGroupBank", localPlayer, money)
guiSetText(GroupBank_Deposit_Edit,"0")
setTimer(function()
triggerServerEvent("getGroupBalance", localPlayer)
end,1000,1)
end
end
    -- ذا الكود الي تعلق بالجيد لست حقت الاعضاء

 

الاعضاء بطلو يظهرو باللوحة وبس  ممكن تصلحلي اياه ^_^

توخذ اللوحة؟؟؟

ما اتوقع انك طرحت الجزء المطلوب ***

Edited by killerProject
Link to comment
1 hour ago, DaHoM said:

setTimer(function()
	local myGroup = getElementData(localPlayer, "Group")
	if myGroup then
		if guiCheckBoxGetSelected(checkBlipAlliances) then
			for i, player in ipairs(getElementsByType("player")) do
				local playerTeam = getElementData(player, "Group")
				if player ~= localPlayer and activedAlliances[playerTeam] == true then
					if not groupAlliancesBlipTable[player] then
						groupAlliancesBlipTable[player] = createBlipAttachedTo(player, 62)
					end
				else
					if groupAlliancesBlipTable[player] then
						destroyElement(groupAlliancesBlipTable[player])
						groupAlliancesBlipTable[player] = nil
					end
				end
			end
			for player, blip in pairs(groupAlliancesBlipTable) do
				local playerTeam = getElementData(player, "Group")
				if not isElement(player) or activedAlliances[playerTeam] ~= true  then
					destroyElement(groupAlliancesBlipTable[player])
					groupAlliancesBlipTable[player] = nil
				end
			end
		else
			for player, blip in pairs(groupAlliancesBlipTable) do
				destroyElement(groupAlliancesBlipTable[player])
				groupAlliancesBlipTable[player] = nil
			end
		end
	else
		for player, blip in pairs(groupAlliancesBlipTable) do
			destroyElement(groupAlliancesBlipTable[player])
			groupAlliancesBlipTable[player] = nil
		end
	end
end, 500, 0)

function on_MyGroup_MemberClick()
  if source == Members_Group_Button then
    guiSetVisible(MyGroup_Members_Window, not guiGetVisible(MyGroup_Members_Window))
    guiGridListClear(MyGroup_Members_Grid)
    guiBringToFront(MyGroup_Members_Window)
    triggerServerEvent("Request_myGroup_MembersList", localPlayer, getElementData(localPlayer, "Group"))
	elseif source == MuteUnMute_Button then
	playSoundFrontEnd ( 30 )
	guiSetEnabled(MuteUnMute_Button,false)
	setTimer(guiSetEnabled,5000,1,MuteUnMute_Button,true)
	local accName = guiGridListGetItemText(MyGroup_Members_Grid, guiGridListGetSelectedItem(MyGroup_Members_Grid), 2)
	if accName and accName ~= "" then
	triggerServerEvent("chgMuteStat", localPlayer, getElementData(localPlayer, "Group"), accName)
	guiSetEnabled(MuteUnMute_Button, false)
	setTimer(guiSetEnabled, 1000, 1, MuteUnMute_Button, true)
	else
	exports["guimessages"]:outputClient("[Group-System] : #FF0000Please Select The Player From list !",0,255,255)
	end
	elseif source == Skin_Button then
		guiSetVisible(skinWnd, not guiGetVisible(skinWnd))
		guiBringToFront(skinWnd)
	elseif source == skinGridList then
		local ID = guiGridListGetItemText(source, guiGridListGetSelectedItem(source), 1)
		if ID and ID ~= "" then
			guiStaticImageLoadImage(skinIMG, "Skins/"..ID..".jpg")
		end
	elseif source == saveSkin_Button then
		local ID = guiGridListGetItemText(skinGridList, guiGridListGetSelectedItem(skinGridList), 1)
		if ID and ID ~= "" then
			triggerServerEvent("setTheGroupSkin", localPlayer, getElementData(localPlayer, "Group"), ID)
			guiSetVisible(skinWnd, false)
		end
	elseif source == AutoSkin_Button then
	triggerServerEvent("AutoTheGroupSkin", localPlayer, getElementData(localPlayer, "Group"))
	elseif source == closeSkin_Button then
		guiSetVisible(skinWnd, false)
	elseif source == MyGroup_Members_Grid then
		getGroupRanks(guiGridListGetItemText(MyGroup_Members_Grid, guiGridListGetSelectedItem(MyGroup_Members_Grid),3))
		local Name = guiGridListGetItemText(MyGroup_Members_Grid,guiGridListGetSelectedItem(MyGroup_Members_Grid),1)
		if Name ~= "" and Name ~= getPlayerName(localPlayer) and (memberRankID <= currentRankID) then
			if PermissionTable["2"] then
				guiSetEnabled(Promote_Button, true)
			else
				guiSetEnabled(Promote_Button, false)
			end
			if PermissionTable["3"] then
				guiSetEnabled(Demote_Button, true)
			else
				guiSetEnabled(Demote_Button, false)
			end
			if PermissionTable["14"] then
				guiSetEnabled(WL_Button, true)
			else
				guiSetEnabled(WL_Button, false)
			end
		else
			guiSetEnabled(Promote_Button, false)
			guiSetEnabled(Demote_Button, false)
			guiSetEnabled(WL_Button, false)
		end
	elseif source == Promote_Button then
		local Account = guiGridListGetItemText(MyGroup_Members_Grid,guiGridListGetSelectedItem(MyGroup_Members_Grid),2)
		if Account ~= "" then
			getGroupRanks(guiGridListGetItemText(MyGroup_Members_Grid, guiGridListGetSelectedItem(MyGroup_Members_Grid),3))
			local Name = guiGridListGetItemText(MyGroup_Members_Grid,guiGridListGetSelectedItem(MyGroup_Members_Grid),1)
			if Name ~= "" and Name ~= getPlayerName(localPlayer) and (memberRankID <= currentRankID) then
				guiSetVisible(Promote_Demote_Window, true)
				guiBringToFront(Promote_Demote_Window)
				guiSetText(Promote_Demote_Window, "Promote Player")
				setElementData(Promote_Demote_Window, "Who", Account, false)
				guiSetText(Promote_Demote_Name, "Name: "..guiGridListGetItemText(MyGroup_Members_Grid,guiGridListGetSelectedItem(MyGroup_Members_Grid),1))
				guiSetText(Promote_Demote_AccountName, "Account Name: "..Account)
				guiSetText(Promote_Demote_Rank, "Current Rank: "..guiGridListGetItemText(MyGroup_Members_Grid,guiGridListGetSelectedItem(MyGroup_Members_Grid),3))
				guiSetText(Promote_Demote_Button, "Promote")
				guiComboBoxClear(Promote_Demote_Combobox)
				if PermissionTable["2"] then
					for i, rrr in ipairs(getGroupRanks(guiGridListGetItemText(MyGroup_Members_Grid, guiGridListGetSelectedItem(MyGroup_Members_Grid),3))) do
						if PermissionTable["4"] then
							if (rrr[1] <= currentRankID) and (rrr[1] > memberRankID) then
								guiComboBoxAddItem(Promote_Demote_Combobox, rrr[2])
							end
						else
							if (rrr[1] < currentRankID) and (rrr[1] > memberRankID) then
								guiComboBoxAddItem(Promote_Demote_Combobox, rrr[2])
							end
						end
					end
				end
			end
		end
	elseif source == Demote_Button then
		local Account = guiGridListGetItemText(MyGroup_Members_Grid,guiGridListGetSelectedItem(MyGroup_Members_Grid),2)
		if Account ~= "" then
			getGroupRanks(guiGridListGetItemText(MyGroup_Members_Grid, guiGridListGetSelectedItem(MyGroup_Members_Grid),3))
			local Name = guiGridListGetItemText(MyGroup_Members_Grid,guiGridListGetSelectedItem(MyGroup_Members_Grid),1)
			if Name ~= "" and Name ~= getPlayerName(localPlayer) and (memberRankID <= currentRankID) then
				guiSetVisible(Promote_Demote_Window, true)
				guiBringToFront(Promote_Demote_Window)
				guiSetText(Promote_Demote_Window, "Demote Player")
				setElementData(Promote_Demote_Window, "Who", Account, false)
				guiSetText(Promote_Demote_Name, "Name: "..guiGridListGetItemText(MyGroup_Members_Grid,guiGridListGetSelectedItem(MyGroup_Members_Grid),1))
				guiSetText(Promote_Demote_AccountName, "Account Name: "..Account)
				guiSetText(Promote_Demote_Rank, "Current Rank: "..guiGridListGetItemText(MyGroup_Members_Grid,guiGridListGetSelectedItem(MyGroup_Members_Grid),3))
				guiSetText(Promote_Demote_Button, "Demote")
				guiComboBoxClear(Promote_Demote_Combobox)
				if PermissionTable["3"] then
					guiComboBoxAddItem(Promote_Demote_Combobox, "Kick this player")
				end
				if PermissionTable["1"] then
					for i, rrr in ipairs(getGroupRanks(guiGridListGetItemText(MyGroup_Members_Grid, guiGridListGetSelectedItem(MyGroup_Members_Grid),3))) do
						if PermissionTable["9"] then
							if (memberRankID <= currentRankID) and (rrr[1] < memberRankID) then
								guiComboBoxAddItem(Promote_Demote_Combobox, rrr[2])
							end
						else
							if (memberRankID < currentRankID) and (rrr[1] < memberRankID) then
								guiComboBoxAddItem(Promote_Demote_Combobox, rrr[2])
							end
						end
					end
				end
			end
		end
  elseif source == Promote_Demote_Button then
    Reason = guiGetText(Promote_Demote_Edit)
    if Reason == "" or Reason:byte(1) == 32 then
      Reason = "No Reason"
    end
    if guiGetText(source) == "Promote" then
      local Promote = guiComboBoxGetItemText(Promote_Demote_Combobox, guiComboBoxGetSelected(Promote_Demote_Combobox))
      if Promote ~= "" and Promote ~= "Choose a rank" then
        triggerServerEvent("Promote_Demote", localPlayer, "Promote", getElementData(Promote_Demote_Window, "Who"), Promote, guiGridListGetItemText(MyGroup_Members_Grid, guiGridListGetSelectedItem(MyGroup_Members_Grid), 3), Reason)
        guiSetVisible(Promote_Demote_Window, false)
      end
    elseif guiGetText(source) == "Demote" then
      local Demote = guiComboBoxGetItemText(Promote_Demote_Combobox, guiComboBoxGetSelected(Promote_Demote_Combobox))
      if Demote ~= "" and Demote ~= "Choose a rank" then
        triggerServerEvent("Promote_Demote", localPlayer, "Demote", getElementData(Promote_Demote_Window, "Who"), Demote, guiGridListGetItemText(MyGroup_Members_Grid, guiGridListGetSelectedItem(MyGroup_Members_Grid), 3), Reason)
        guiSetVisible(Promote_Demote_Window, false)
      end
    end
  elseif source == Promote_Demote_Cancel then
    guiSetVisible(Promote_Demote_Window, false)
  elseif source == WL_Button then
    local Name = guiGridListGetItemText(MyGroup_Members_Grid, guiGridListGetSelectedItem(MyGroup_Members_Grid), 1)
    if Name ~= "" then
      local currentLevel = guiGridListGetItemText(MyGroup_Members_Grid, guiGridListGetSelectedItem(MyGroup_Members_Grid), 5)
      guiSetVisible(Warn_Window, true)
      guiBringToFront(Warn_Window)
      guiSetText(Warn_Window, "Set (" .. Name .. ") Warning level")
      guiSetText(Warn_Edit, string.sub(currentLevel, 1, #currentLevel - 1))
      guiProgressBarSetProgress(Warn_Bar, string.sub(currentLevel, 1, #currentLevel - 1))
      setElementData(Warn_Window, "Who", guiGridListGetItemText(MyGroup_Members_Grid, guiGridListGetSelectedItem(MyGroup_Members_Grid), 2))
    end
  elseif source == SetWarn_Button then
    local currentLevel = guiGridListGetItemText(MyGroup_Members_Grid, guiGridListGetSelectedItem(MyGroup_Members_Grid), 5)
    local warnLevel = tonumber(guiGetText(Warn_Edit)) or 0
    local currentLevel = tonumber(string.sub(currentLevel, 1, #currentLevel - 1))
    if warnLevel ~= currentLevel then
      Reason = guiGetText(Warn_Reason_Edit)
      if Reason == "" or Reason:byte(1) == 32 then
        Reason = "No Reason"
      end
      guiSetVisible(Warn_Window, false)
      if warnLevel > currentLevel then
        oLevel = "+" .. math.abs(currentLevel - warnLevel)
      else
        oLevel = "-" .. currentLevel - warnLevel
      end
      triggerServerEvent("setWarningLevel", localPlayer, getElementData(Warn_Window, "Who"), warnLevel, oLevel, Reason)
    end
  elseif source == CancelWarn_Button then
    guiSetVisible(Warn_Window, false)
  elseif source == MyGroup_Members_Close then
    guiSetVisible(MyGroup_Members_Window, not guiGetVisible(MyGroup_Members_Window))
    guiGridListClear(MyGroup_Members_Grid)
elseif source == Group_Bank_Button then
playSoundFrontEnd ( 30 )
guiSetEnabled(Group_Bank_Button,false)
setTimer(guiSetEnabled,5000,1,Group_Bank_Button,true)
guiSetVisible(GroupBank_Window, not guiGetVisible(GroupBank_Window))
guiBringToFront(GroupBank_Window)
guiSetText(GroupBank_Deposit_Edit,"0")
guiSetText(GroupBank_Withdraw_Edit,"0")
guiSetText(GroupBank_GiveMember_Edit,"0")
guiSetText(GroupBank_GiveAll_Edit,"0")
guiSetText(GroupBank_GiveGroup_Edit,"0")
guiSetText(GroupBank_GiveGroup_Edit2,"GroupName")
triggerServerEvent("getGroupBalance", localPlayer)
triggerServerEvent("GroupMemberGiveMoney", localPlayer)
elseif source == GroupBank_Deposit_Button then
if getPlayerPing(localPlayer) < 500 then
playSoundFrontEnd ( 30 )
guiSetEnabled(GroupBank_Deposit_Button,false)
setTimer(guiSetEnabled,5000,1,GroupBank_Deposit_Button,true)
local money = tonumber(guiGetText(GroupBank_Deposit_Edit)) or 0
if money > 0 then
triggerServerEvent("DepositMoneyInGroupBank", localPlayer, money)
guiSetText(GroupBank_Deposit_Edit,"0")
setTimer(function()
triggerServerEvent("getGroupBalance", localPlayer)
end,1000,1)
end
end
    -- ذا الكود الي تعلق بالجيد لست حقت الاعضاء

 

وش ذا كله 

اعرض بس الجزء اللي لعبت فيه

Link to comment
16 minutes ago, killerProject said:

ما اتوقع انك طرحت الجزء المطلوب ***

افهم علي وقلي وش الجزء , انا كانت اللوحة تشتغل وكل شي تمام انا جيت اللوحة غيرت حجمها وكبرت الازرار + وبس

وخربت 

تخذو اللوحة قبل وبعد ؟؟ 

بالأكوادطبعاً

local x, y = guiGetScreenSize()
local rx, ry = (x/800), (y/600)

addEventHandler("onClientGUIClick", Group_Leader_Delete, on_Group_LeaderClick, false)
local screenW, screenH = guiGetScreenSize()
MyGroup_Members_Window = guiCreateWindow(389, 194, 696, 448, " My Group Members", false)
guiWindowSetSizable(MyGroup_Members_Window, false)
guiSetVisible(MyGroup_Members_Window, false)
centerWindow(MyGroup_Members_Window)

MyGroup_Members_Grid = guiCreateGridList(9, 27, 683, 215, false, MyGroup_Members_Window)
guiSetFont(MyGroup_Members_Grid, "default-bold-small")
guiGridListSetSelectionMode(MyGroup_Members_Grid,1)
guiGridListAddColumn(MyGroup_Members_Grid,"Name", 0.29)
guiGridListAddColumn(MyGroup_Members_Grid,"Account", 0.19)
guiGridListAddColumn(MyGroup_Members_Grid,"Rank", 0.15)
guiGridListAddColumn(MyGroup_Members_Grid,"Last Online", 0.15)
guiGridListAddColumn(MyGroup_Members_Grid,"WL", 0.08)
guiGridListAddColumn(MyGroup_Members_Grid, "Mute", 0.08)

Skin_Button = guiCreateButton(211, 304, 172, 34, "Group Skins", false, MyGroup_Members_Window)
guiSetFont(Skin_Button, "default-bold-small")
guiSetProperty(Skin_Button, "NormalTextColour", "FFBE0043")
Sitting_Button = guiCreateButton(0.001, 0.001, 0.001, 0.01, "Group Market", false, MyGroup_Members_Window)
guiSetFont(Sitting_Button, "default-bold-small")
chat_color = guiCreateButton(0.001, 0.001, 0.001, 0.001, "Base Vehicle Color", false, MyGroup_Members_Window)
guiSetFont(chat_color, "default-bold-small")
TurfColor_Button = guiCreateButton(211, 257, 172, 32, "Group Turf Color", false, MyGroup_Members_Window)
guiSetFont(TurfColor_Button, "default-bold-small")
guiSetProperty(TurfColor_Button, "NormalTextColour", "FF004CBF")
Promote_Button = guiCreateButton(9, 257, 162, 34, "Promate", false, MyGroup_Members_Window)
guiSetFont(Promote_Button, "default-bold-small")
guiSetProperty(Promote_Button, "NormalTextColour", "FF24C100")
Demote_Button = guiCreateButton(9, 304, 162, 34, "Demote", false, MyGroup_Members_Window)
guiSetFont(Demote_Button, "default-bold-small")
guiSetProperty(Demote_Button, "NormalTextColour", "FFC10000")
WL_Button = guiCreateButton(439, 303, 202, 35, "Warming Level", false, MyGroup_Members_Window)
guiSetFont(WL_Button, "default-bold-small")
guiSetProperty(WL_Button, "NormalTextColour", "FFBC3A01")
MuteUnMute_Button = guiCreateButton(439, 255, 202, 34, "Un/Mute", false, MyGroup_Members_Window)
guiSetFont(MuteUnMute_Button, "default-bold-small")
guiSetProperty(MuteUnMute_Button, "NormalTextColour", "FFC0B500")
NewLineLabel = guiCreateLabel(-9, 348, 706, 15, string.rep("ــــ", 150), false, MyGroup_Members_Window)
guiSetFont(NewLineLabel, "default-bold-small")
guiLabelSetColor(NewLineLabel, 86, 140, 0)
checkBlip = guiCreateCheckBox(10, 398, 194, 15, "Create Blip on Group Members", false, false, MyGroup_Members_Window)
guiSetFont(checkBlip, "default-bold-small")
checkBlipAlliances = guiCreateCheckBox(10, 423, 194, 15, "Create Blip on Group Alliances", false, false, MyGroup_Members_Window)
guiSetFont(checkBlipAlliances, "default-bold-small")
MyGroup_Members_Close = guiCreateButton(363, 386, 288, 38, "Close", false, MyGroup_Members_Window)
guiSetFont(MyGroup_Members_Close, "default-bold-small")
guiSetProperty(MyGroup_Members_Close, "NormalTextColour", "FFFC0808")
Alliance_Group_Label1 = guiCreateLabel(10, 369, 87, 15, "Alliance Group : ", false, MyGroup_Members_Window)
guiSetFont(Alliance_Group_Label1, "default-bold-small")
guiLabelSetColor(Alliance_Group_Label1, 227, 254, 0)
Alliance_Group_Label = guiCreateLabel(107, 369, 87, 15, "N/A", false, MyGroup_Members_Window)
guiSetFont(Alliance_Group_Label, "default-bold-small")
guiLabelSetColor(Alliance_Group_Label, 0, 255, 0)

 

Link to comment
2 minutes ago, DaHoM said:

افهم علي وقلي وش الجزء , انا كانت اللوحة تشتغل وكل شي تمام انا جيت اللوحة غيرت حجمها وكبرت الازرار + وبس

وخربت 

تخذو اللوحة قبل وبعد ؟؟ 

بالأكوادطبعاً

اي جيب قبل وببعد

بس لا تجيب 100 سطر | ججيب بس الجزء اللي عدلته انت وخربت من بعده

Link to comment

# Deleted
 

1 minute ago, A7MEDENO said:

اي جيب قبل وببعد

بس لا تجيب 100 سطر | ججيب بس الجزء اللي عدلته انت وخربت من بعده

أخي اللوحةعدلت عليها كلها شوفها 

Edited by DaHoM
Link to comment
Just now, A7MEDENO said:

ارسل الاكودا اللي انت عدلتها كلها

او الاكواد اللي لما عدلتها اللوحه خربت

بعطيك اللوحة قبل وبعد 

قبل الخراب

 

local x, y = guiGetScreenSize()
local rx, ry = (x/800), (y/600)

addEventHandler("onClientGUIClick", Group_Leader_Delete, on_Group_LeaderClick, false)
local screenW, screenH = guiGetScreenSize()
MyGroup_Members_Window = guiCreateWindow(588, 380, 588, 380, ":: My Group Members ::", false)
guiWindowSetSizable(MyGroup_Members_Window, false)
guiSetVisible(MyGroup_Members_Window, false)
centerWindow(MyGroup_Members_Window)

MyGroup_Members_Grid = guiCreateGridList(9, 27, 569, 214, false, MyGroup_Members_Window)
guiSetFont(MyGroup_Members_Grid, "default-bold-small")
guiGridListSetSelectionMode(MyGroup_Members_Grid,1)
guiGridListAddColumn(MyGroup_Members_Grid,"Name", 0.29)
guiGridListAddColumn(MyGroup_Members_Grid,"Account", 0.19)
guiGridListAddColumn(MyGroup_Members_Grid,"Rank", 0.15)
guiGridListAddColumn(MyGroup_Members_Grid,"Last Online", 0.15)
guiGridListAddColumn(MyGroup_Members_Grid,"WL", 0.08)
guiGridListAddColumn(MyGroup_Members_Grid, "Mute", 0.08)

Skin_Button = guiCreateButton(9, 247, 139, 24, "Group Skins", false, MyGroup_Members_Window)
guiSetFont(Skin_Button, "default-bold-small")
Sitting_Button = guiCreateButton(9, 275, 139, 24, "Group Market", false, MyGroup_Members_Window)
guiSetFont(Sitting_Button, "default-bold-small")
chat_color = guiCreateButton(152, 247, 139, 24, "Base Vehicle Color", false, MyGroup_Members_Window)
guiSetFont(chat_color, "default-bold-small")
TurfColor_Button = guiCreateButton(152, 275, 139, 24, "Group Turf Color", false, MyGroup_Members_Window)
guiSetFont(TurfColor_Button, "default-bold-small")
Promote_Button = guiCreateButton(296, 247, 139, 24, "Promate", false, MyGroup_Members_Window)
guiSetFont(Promote_Button, "default-bold-small")
Demote_Button = guiCreateButton(296, 275, 139, 24, "Demote", false, MyGroup_Members_Window)
guiSetFont(Demote_Button, "default-bold-small")
WL_Button = guiCreateButton(439, 247, 139, 24, "set Warning Level", false, MyGroup_Members_Window)
guiSetFont(WL_Button, "default-bold-small")
MuteUnMute_Button = guiCreateButton(439, 275, 139, 24, "Mute / unMute", false, MyGroup_Members_Window)
guiSetFont(MuteUnMute_Button, "default-bold-small")
NewLineLabel = guiCreateLabel(2, 299, 586, 15, string.rep("ــــ", 150), false, MyGroup_Members_Window)
guiSetFont(NewLineLabel, "default-bold-small")
checkBlip = guiCreateCheckBox(9, 319, 194, 15, "Create Blip on Group Members", false, false, MyGroup_Members_Window)
guiSetFont(checkBlip, "default-bold-small")
checkBlipAlliances = guiCreateCheckBox(203, 319, 194, 15, "Create Blip on Group Alliances", false, false, MyGroup_Members_Window)
guiSetFont(checkBlipAlliances, "default-bold-small")
MyGroup_Members_Close = guiCreateButton(9, 344, 569, 26, "Close Window", false, MyGroup_Members_Window)
guiSetFont(MyGroup_Members_Close, "default-bold-small")
Alliance_Group_Label1 = guiCreateLabel(397, 320, 87, 15, "Alliance Group : ", false, MyGroup_Members_Window)
guiSetFont(Alliance_Group_Label1, "default-bold-small")
guiLabelSetColor(Alliance_Group_Label1, 227, 254, 0)
Alliance_Group_Label = guiCreateLabel(491, 320, 87, 15, "N/A", false, MyGroup_Members_Window)
guiSetFont(Alliance_Group_Label, "default-bold-small")
guiLabelSetColor(Alliance_Group_Label, 0, 255, 0)

بعد التعدل الذي احصل الخراب

 

local x, y = guiGetScreenSize()
local rx, ry = (x/800), (y/600)

addEventHandler("onClientGUIClick", Group_Leader_Delete, on_Group_LeaderClick, false)
local screenW, screenH = guiGetScreenSize()
MyGroup_Members_Window = guiCreateWindow(389, 194, 696, 448, " My Group Members", false)
guiWindowSetSizable(MyGroup_Members_Window, false)
guiSetVisible(MyGroup_Members_Window, false)
centerWindow(MyGroup_Members_Window)

MyGroup_Members_Grid = guiCreateGridList(9, 27, 683, 215, false, MyGroup_Members_Window)
guiSetFont(MyGroup_Members_Grid, "default-bold-small")
guiGridListSetSelectionMode(MyGroup_Members_Grid,1)
guiGridListAddColumn(MyGroup_Members_Grid,"Name", 0.29)
guiGridListAddColumn(MyGroup_Members_Grid,"Account", 0.19)
guiGridListAddColumn(MyGroup_Members_Grid,"Rank", 0.15)
guiGridListAddColumn(MyGroup_Members_Grid,"Last Online", 0.15)
guiGridListAddColumn(MyGroup_Members_Grid,"WL", 0.08)
guiGridListAddColumn(MyGroup_Members_Grid, "Mute", 0.08)

Skin_Button = guiCreateButton(211, 304, 172, 34, "Group Skins", false, MyGroup_Members_Window)
guiSetFont(Skin_Button, "default-bold-small")
guiSetProperty(Skin_Button, "NormalTextColour", "FFBE0043")
Sitting_Button = guiCreateButton(0.001, 0.001, 0.001, 0.01, "Group Market", false, MyGroup_Members_Window)
guiSetFont(Sitting_Button, "default-bold-small")
chat_color = guiCreateButton(0.001, 0.001, 0.001, 0.001, "Base Vehicle Color", false, MyGroup_Members_Window)
guiSetFont(chat_color, "default-bold-small")
TurfColor_Button = guiCreateButton(211, 257, 172, 32, "Group Turf Color", false, MyGroup_Members_Window)
guiSetFont(TurfColor_Button, "default-bold-small")
guiSetProperty(TurfColor_Button, "NormalTextColour", "FF004CBF")
Promote_Button = guiCreateButton(9, 257, 162, 34, "Promate", false, MyGroup_Members_Window)
guiSetFont(Promote_Button, "default-bold-small")
guiSetProperty(Promote_Button, "NormalTextColour", "FF24C100")
Demote_Button = guiCreateButton(9, 304, 162, 34, "Demote", false, MyGroup_Members_Window)
guiSetFont(Demote_Button, "default-bold-small")
guiSetProperty(Demote_Button, "NormalTextColour", "FFC10000")
WL_Button = guiCreateButton(439, 303, 202, 35, "Warming Level", false, MyGroup_Members_Window)
guiSetFont(WL_Button, "default-bold-small")
guiSetProperty(WL_Button, "NormalTextColour", "FFBC3A01")
MuteUnMute_Button = guiCreateButton(439, 255, 202, 34, "Un/Mute", false, MyGroup_Members_Window)
guiSetFont(MuteUnMute_Button, "default-bold-small")
guiSetProperty(MuteUnMute_Button, "NormalTextColour", "FFC0B500")
NewLineLabel = guiCreateLabel(-9, 348, 706, 15, string.rep("ــــ", 150), false, MyGroup_Members_Window)
guiSetFont(NewLineLabel, "default-bold-small")
guiLabelSetColor(NewLineLabel, 86, 140, 0)
checkBlip = guiCreateCheckBox(10, 398, 194, 15, "Create Blip on Group Members", false, false, MyGroup_Members_Window)
guiSetFont(checkBlip, "default-bold-small")
checkBlipAlliances = guiCreateCheckBox(10, 423, 194, 15, "Create Blip on Group Alliances", false, false, MyGroup_Members_Window)
guiSetFont(checkBlipAlliances, "default-bold-small")
MyGroup_Members_Close = guiCreateButton(363, 386, 288, 38, "Close", false, MyGroup_Members_Window)
guiSetFont(MyGroup_Members_Close, "default-bold-small")
guiSetProperty(MyGroup_Members_Close, "NormalTextColour", "FFFC0808")
Alliance_Group_Label1 = guiCreateLabel(10, 369, 87, 15, "Alliance Group : ", false, MyGroup_Members_Window)
guiSetFont(Alliance_Group_Label1, "default-bold-small")
guiLabelSetColor(Alliance_Group_Label1, 227, 254, 0)
Alliance_Group_Label = guiCreateLabel(107, 369, 87, 15, "N/A", false, MyGroup_Members_Window)
guiSetFont(Alliance_Group_Label, "default-bold-small")
guiLabelSetColor(Alliance_Group_Label, 0, 255, 0)

 

هل من موجيب؟؟

Link to comment
14 minutes ago, DaHoM said:

بعطيك اللوحة قبل وبعد 

قبل الخراب

 


local x, y = guiGetScreenSize()local rx, ry = (x/800), (y/600)addEventHandler("onClientGUIClick", Group_Leader_Delete, on_Group_LeaderClick, false)local screenW, screenH = guiGetScreenSize()MyGroup_Members_Window = guiCreateWindow(588, 380, 588, 380, ":: My Group Members ::", false)guiWindowSetSizable(MyGroup_Members_Window, false)guiSetVisible(MyGroup_Members_Window, false)centerWindow(MyGroup_Members_Window)MyGroup_Members_Grid = guiCreateGridList(9, 27, 569, 214, false, MyGroup_Members_Window)guiSetFont(MyGroup_Members_Grid, "default-bold-small")guiGridListSetSelectionMode(MyGroup_Members_Grid,1)guiGridListAddColumn(MyGroup_Members_Grid,"Name", 0.29)guiGridListAddColumn(MyGroup_Members_Grid,"Account", 0.19)guiGridListAddColumn(MyGroup_Members_Grid,"Rank", 0.15)guiGridListAddColumn(MyGroup_Members_Grid,"Last Online", 0.15)guiGridListAddColumn(MyGroup_Members_Grid,"WL", 0.08)guiGridListAddColumn(MyGroup_Members_Grid, "Mute", 0.08)Skin_Button = guiCreateButton(9, 247, 139, 24, "Group Skins", false, MyGroup_Members_Window)guiSetFont(Skin_Button, "default-bold-small")Sitting_Button = guiCreateButton(9, 275, 139, 24, "Group Market", false, MyGroup_Members_Window)guiSetFont(Sitting_Button, "default-bold-small")chat_color = guiCreateButton(152, 247, 139, 24, "Base Vehicle Color", false, MyGroup_Members_Window)guiSetFont(chat_color, "default-bold-small")TurfColor_Button = guiCreateButton(152, 275, 139, 24, "Group Turf Color", false, MyGroup_Members_Window)guiSetFont(TurfColor_Button, "default-bold-small")Promote_Button = guiCreateButton(296, 247, 139, 24, "Promate", false, MyGroup_Members_Window)guiSetFont(Promote_Button, "default-bold-small")Demote_Button = guiCreateButton(296, 275, 139, 24, "Demote", false, MyGroup_Members_Window)guiSetFont(Demote_Button, "default-bold-small")WL_Button = guiCreateButton(439, 247, 139, 24, "set Warning Level", false, MyGroup_Members_Window)guiSetFont(WL_Button, "default-bold-small")MuteUnMute_Button = guiCreateButton(439, 275, 139, 24, "Mute / unMute", false, MyGroup_Members_Window)guiSetFont(MuteUnMute_Button, "default-bold-small")NewLineLabel = guiCreateLabel(2, 299, 586, 15, string.rep("ــــ", 150), false, MyGroup_Members_Window)guiSetFont(NewLineLabel, "default-bold-small")checkBlip = guiCreateCheckBox(9, 319, 194, 15, "Create Blip on Group Members", false, false, MyGroup_Members_Window)guiSetFont(checkBlip, "default-bold-small")checkBlipAlliances = guiCreateCheckBox(203, 319, 194, 15, "Create Blip on Group Alliances", false, false, MyGroup_Members_Window)guiSetFont(checkBlipAlliances, "default-bold-small")MyGroup_Members_Close = guiCreateButton(9, 344, 569, 26, "Close Window", false, MyGroup_Members_Window)guiSetFont(MyGroup_Members_Close, "default-bold-small")Alliance_Group_Label1 = guiCreateLabel(397, 320, 87, 15, "Alliance Group : ", false, MyGroup_Members_Window)guiSetFont(Alliance_Group_Label1, "default-bold-small")guiLabelSetColor(Alliance_Group_Label1, 227, 254, 0)Alliance_Group_Label = guiCreateLabel(491, 320, 87, 15, "N/A", false, MyGroup_Members_Window)guiSetFont(Alliance_Group_Label, "default-bold-small")guiLabelSetColor(Alliance_Group_Label, 0, 255, 0)

بعد التعدل الذي احصل الخراب

 


local x, y = guiGetScreenSize()local rx, ry = (x/800), (y/600)addEventHandler("onClientGUIClick", Group_Leader_Delete, on_Group_LeaderClick, false)local screenW, screenH = guiGetScreenSize()MyGroup_Members_Window = guiCreateWindow(389, 194, 696, 448, " My Group Members", false)guiWindowSetSizable(MyGroup_Members_Window, false)guiSetVisible(MyGroup_Members_Window, false)centerWindow(MyGroup_Members_Window)MyGroup_Members_Grid = guiCreateGridList(9, 27, 683, 215, false, MyGroup_Members_Window)guiSetFont(MyGroup_Members_Grid, "default-bold-small")guiGridListSetSelectionMode(MyGroup_Members_Grid,1)guiGridListAddColumn(MyGroup_Members_Grid,"Name", 0.29)guiGridListAddColumn(MyGroup_Members_Grid,"Account", 0.19)guiGridListAddColumn(MyGroup_Members_Grid,"Rank", 0.15)guiGridListAddColumn(MyGroup_Members_Grid,"Last Online", 0.15)guiGridListAddColumn(MyGroup_Members_Grid,"WL", 0.08)guiGridListAddColumn(MyGroup_Members_Grid, "Mute", 0.08)Skin_Button = guiCreateButton(211, 304, 172, 34, "Group Skins", false, MyGroup_Members_Window)guiSetFont(Skin_Button, "default-bold-small")guiSetProperty(Skin_Button, "NormalTextColour", "FFBE0043")Sitting_Button = guiCreateButton(0.001, 0.001, 0.001, 0.01, "Group Market", false, MyGroup_Members_Window)guiSetFont(Sitting_Button, "default-bold-small")chat_color = guiCreateButton(0.001, 0.001, 0.001, 0.001, "Base Vehicle Color", false, MyGroup_Members_Window)guiSetFont(chat_color, "default-bold-small")TurfColor_Button = guiCreateButton(211, 257, 172, 32, "Group Turf Color", false, MyGroup_Members_Window)guiSetFont(TurfColor_Button, "default-bold-small")guiSetProperty(TurfColor_Button, "NormalTextColour", "FF004CBF")Promote_Button = guiCreateButton(9, 257, 162, 34, "Promate", false, MyGroup_Members_Window)guiSetFont(Promote_Button, "default-bold-small")guiSetProperty(Promote_Button, "NormalTextColour", "FF24C100")Demote_Button = guiCreateButton(9, 304, 162, 34, "Demote", false, MyGroup_Members_Window)guiSetFont(Demote_Button, "default-bold-small")guiSetProperty(Demote_Button, "NormalTextColour", "FFC10000")WL_Button = guiCreateButton(439, 303, 202, 35, "Warming Level", false, MyGroup_Members_Window)guiSetFont(WL_Button, "default-bold-small")guiSetProperty(WL_Button, "NormalTextColour", "FFBC3A01")MuteUnMute_Button = guiCreateButton(439, 255, 202, 34, "Un/Mute", false, MyGroup_Members_Window)guiSetFont(MuteUnMute_Button, "default-bold-small")guiSetProperty(MuteUnMute_Button, "NormalTextColour", "FFC0B500")NewLineLabel = guiCreateLabel(-9, 348, 706, 15, string.rep("ــــ", 150), false, MyGroup_Members_Window)guiSetFont(NewLineLabel, "default-bold-small")guiLabelSetColor(NewLineLabel, 86, 140, 0)checkBlip = guiCreateCheckBox(10, 398, 194, 15, "Create Blip on Group Members", false, false, MyGroup_Members_Window)guiSetFont(checkBlip, "default-bold-small")checkBlipAlliances = guiCreateCheckBox(10, 423, 194, 15, "Create Blip on Group Alliances", false, false, MyGroup_Members_Window)guiSetFont(checkBlipAlliances, "default-bold-small")MyGroup_Members_Close = guiCreateButton(363, 386, 288, 38, "Close", false, MyGroup_Members_Window)guiSetFont(MyGroup_Members_Close, "default-bold-small")guiSetProperty(MyGroup_Members_Close, "NormalTextColour", "FFFC0808")Alliance_Group_Label1 = guiCreateLabel(10, 369, 87, 15, "Alliance Group : ", false, MyGroup_Members_Window)guiSetFont(Alliance_Group_Label1, "default-bold-small")guiLabelSetColor(Alliance_Group_Label1, 227, 254, 0)Alliance_Group_Label = guiCreateLabel(107, 369, 87, 15, "N/A", false, MyGroup_Members_Window)guiSetFont(Alliance_Group_Label, "default-bold-small")guiLabelSetColor(Alliance_Group_Label, 0, 255, 0)

 

هل من موجيب؟؟

اصبر دقايق

Edited by A7MEDENO
Link to comment

لا في مشكلة يا اخي , بس يمكن انت ما لاحظتها مثلي

3 minutes ago, D7mas said:

أخي قتصكطولة مرة ضض , انا شفت اللوحات 

بس ما لاحظت شي  , عدلت على شي ثاني

 

Link to comment
12 hours ago, Deativated said:

المشكله, هوا يقولك الترقير حق myGroupList 

في سيرفر مش موجود في كلنت سيد

انا ما عدلت ابداً على السيرفر + انا غيرت احدداثيات اللوحة فقط

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...