#Paper Posted January 6, 2011 Share Posted January 6, 2011 The GUI don't show: function showSkinSelect() local skins = { 7,8...} SelectSkinBtn = guiCreateButton(45,517,368,124,"Select skin!",false) guiSetFont(SelectSkinBtn,"default-bold-small") SkinGridList = guiCreateGridList(46,176,367,321,false) Skinidcolumn = guiGridListAddColumn(SkinGridList,"Skin ID",0.2) for k, v in ipairs(skins) do SkinIdRow = guiGridListAddRow ( SkinGridList ) guiGridListSetItemText ( SkinGridList, SkinIdRow, Skinidcolumn, v, false, false ) end dxDrawText("Select your skin!",314.0,6.0,812.0,142.0,tocolor(255,0,0,255),2.0,"bankgothic","center","center",false,false,false) end addEventHandler("onClientPlayerJoin", getRootElement(), showSkinSelect) Link to comment
MatXpl Posted January 6, 2011 Share Posted January 6, 2011 https://wiki.multitheftauto.com/wiki/GuiSetVisible ? Link to comment
Dark Dragon Posted January 6, 2011 Share Posted January 6, 2011 onClientPlayerJoinThis event is triggered when a player joins a server. It is triggered for all players except the local player, as the local player joins the server before their client-side resources are started. try onClientResourceStart instead Link to comment
Castillo Posted January 6, 2011 Share Posted January 6, 2011 drawing functions requires onClientRender to run. Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now