#Paper Posted January 6, 2011 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)
MatXpl Posted January 6, 2011 Posted January 6, 2011 https://wiki.multitheftauto.com/wiki/GuiSetVisible ?
Dark Dragon Posted January 6, 2011 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
Castillo Posted January 6, 2011 Posted January 6, 2011 drawing functions requires onClientRender to run.
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