manve1 Posted August 6, 2012 Share Posted August 6, 2012 Hey, sorry for disturbing you for easy stuff i still don't get it, i get script warning that it got boolean at onepoint and it dont add skin ids to grid list.. script one piece: skins = { 277, 278, 279 } function skins ( theResource ) list = guiCreateGridList ( 0.1, 0.4, 0.80, 0.35, true,window ) row = guiGridListAddRow ( list ) column = guiGridListAddColumn( list, "Skin's", 0.85 ) guiGridListSetItemText ( list, row, skinID, false, false ) end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), skins) where it gets boolean: guiGridListSetItemText ( list, row, 1, skinID, false, false ) proof: please help me. Link to comment
TAPL Posted August 6, 2012 Share Posted August 6, 2012 skinID = {277,278,279} function skins() list = guiCreateGridList(0.1, 0.4, 0.80, 0.35, true,window) column = guiGridListAddColumn(list, "Skin's", 0.85) for _,v in ipairs (skinID) do row = guiGridListAddRow(list) guiGridListSetItemText(list, row, tostring(v), false, true) end end addEventHandler("onClientResourceStart", resourceRoot, skins) Link to comment
manve1 Posted August 6, 2012 Author Share Posted August 6, 2012 got boolen... guiGridListSetItemText(list, row, tostring(v), false, true) Link to comment
TAPL Posted August 6, 2012 Share Posted August 6, 2012 skinID = {277,278,279} function skins() list = guiCreateGridList(0.1, 0.4, 0.80, 0.35, true,window) column = guiGridListAddColumn(list, "Skin's", 0.85) for _,v in ipairs (skinID) do row = guiGridListAddRow(list) guiGridListSetItemText(list, row, column, tostring(v), false, true) end end addEventHandler("onClientResourceStart", resourceRoot, skins) Link to comment
Callum Posted August 7, 2012 Share Posted August 7, 2012 Just a minor note, it would be "Skins" not "Skin's". 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