manve1 Posted August 6, 2012 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. Looking for tutorials or information? check out: www.simpleask.co.uk
TAPL Posted August 6, 2012 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)
manve1 Posted August 6, 2012 Author Posted August 6, 2012 got boolen... guiGridListSetItemText(list, row, tostring(v), false, true) Looking for tutorials or information? check out: www.simpleask.co.uk
TAPL Posted August 6, 2012 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)
manve1 Posted August 6, 2012 Author Posted August 6, 2012 thx, it works now Looking for tutorials or information? check out: www.simpleask.co.uk
Callum Posted August 7, 2012 Posted August 7, 2012 Just a minor note, it would be "Skins" not "Skin's". Retired
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