جرب هاذا
function dxDrawProgressBar(x, y, w, h, progress, pg, bgColor, barColor)
dxDrawRectangle(x, y, progress / 100 * w, h, barColor or 0xffff0000, pg)
dxDrawRectangle(x, y, w, h, bgColor, pg)
end
function CreateDx ( )
dxDrawProgressBar(270, 256, 275, 25,15,false,tocolor(0,0,0,200),tocolor(0,153,255,255))
end
addEventHandler("onClientGUIClick",root,
function()
sel = guiGridListGetSelectedItem(SkinsGrid)
if source == ChooseButton then
if sel ~= -1 then
setPlayerSkin(localPlayer,guiGridListGetItemData(SkinsGrid,sel,1))
fadeCamera(false)
addEventHandler ( "onClientRender" , root , CreateDx )
setTimer(function()
fadeCamera(true)
setElementPosition(localPlayer,1098.14441,1612.42993,12.54688)
setCameraTarget(localPlayer,localPlayer)
destroyElement(PedSkin)
end,5000,1)
guiSetVisible(SkinsWnd,false)
showCursor(false)
end
end
end
)