local NpcS = {
{-2407.79517, -594.04980, 132.64844, 90},
{877.59118652344, -1420.6951904297, 13.478086471558, 90},
{2153.3666992188, -1451.8227539063, 24.5390625, 0},
{2089.4887695313, -1279.0625, 24.502468109131, 0},
{2231.7917480469, -1280.080078125, 24.3671875, 0},
}
for i, v in ipairs(NpcS) do
local ped = createPed(25, v[1], v[2], v[3], 0, 0, v[4])
setElementFrozen(ped, true)
setElementData(ped, 'ped->gangNPC', true)
end
function openGang(button, state, xx, yy, xxx, yyy, zzz, clickedElement)
if clickedElement then
if getElementType(clickedElement) == "ped" and getElementModel(clickedElement) == 25 and button == 'left' and state == 'down' and getElementData(localPlayer, 'character->inJobPanel') == false and getElementData(clickedElement, 'ped->gangNPC') == true then
addEventHandler('onClientRender', root, GangPanel)
setElementData(localPlayer, 'character->inJobPanel', true)
showChat(false)
Panel = 1
end
end
end
addEventHandler ( "onClientClick", getRootElement(), openGang)
nao sei porque nao ta abrindo meu painel