Jump to content

Help sript gets boolean


manve1

Recommended Posts

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:

DKvQ1.png

please help me.

Link to comment
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
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...