Jump to content

problem in script


//_Dragon

Recommended Posts

this is a script mod called party like a group where u can t talk to ur friend the problem is it doesnt shows the panel but it's working fine idk how i can fix it 

function updateParty(p)
	local t = {}
	local s = p:getSerial()
	local is = party[s]
	if is then
		for i,v in ipairs(getSerialsInParty(is)) do
			local s = v
			local q = executeSQLQuery("SELECT username FROM accountUsername WHERE serial=?",s)
			local n = q[1].username
			local leader = isPartyLeader(is,s)
			local h = getPlayerFromSerial(s)
			if isElement(h) then
				local r,g,b = getPlayerNametagColor(h)
				color[s] = {r,g,b}
			end
			table.insert(t,{n,leader,color[s]})
		end
		triggerClientEvent(p,"PT:Update",p,t)
	end
end

it should works like these :=========> link https://imge.to/i/z3NUZ

debugscript problem >> https://imge.to/i/z3dXx

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...