Jump to content

Skin shop


Recommended Posts

Posted

Why this dont set skins on gridlist?No errors

local skins = { {"CJ",0,1000}, {"Idk",1,1000} } 
  
function setskinsongrid () 
        for key, value in ipairs(skins) do 
            local row = guiGridListAddRow(GUIEditor_Grid[1]) 
            guiGridListSetItemText(GUIEditor_Grid[1], row, GUIEditor_Column[2], id[2], false, false) 
            guiGridListSetItemText(GUIEditor_Grid[1], row, GUIEditor_Column[1], name[1], false, false) 
            guiGridListSetItemText(GUIEditor_Grid[1], row, GUIEditor_Column[3], money[3], false, false) 
end 
end 
addEventHandler ( "onClientResourceStart", getThisResource(), setskinsongrid ) 

Need paid scripter just pm me i will accept every job!

Posted
local skins = { {"CJ",0,1000}, {"Idk",1,1000} } 
  
function setskinsongrid () 
        for key, value in ipairs(skins) do 
            local row = guiGridListAddRow(GUIEditor_Grid[1]) 
            guiGridListSetItemText(GUIEditor_Grid[1], row, GUIEditor_Column[2], id[2], false, false) 
            guiGridListSetItemText(GUIEditor_Grid[1], row, GUIEditor_Column[1], name[1], false, false) 
            guiGridListSetItemText(GUIEditor_Grid[1], row, GUIEditor_Column[3], money[3], false, false) 
end 
end 
addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), setskinsongrid ) 

" Keep Thinking Different . " - Steve Jops

--------------------

Don't send me PMs asking for help, I Won't reply !

Posted
            guiGridListSetItemText(GUIEditor_Grid[1], row, GUIEditor_Column[2], id[2], false, false) 
            guiGridListSetItemText(GUIEditor_Grid[1], row, GUIEditor_Column[1], name[1], false, false) 
            guiGridListSetItemText(GUIEditor_Grid[1], row, GUIEditor_Column[3], money[3], false, false) 

There's the problem, you are using tables that don't exist.

Use this:

            guiGridListSetItemText(GUIEditor_Grid[1], row, GUIEditor_Column[2], value[2], false, false) 
            guiGridListSetItemText(GUIEditor_Grid[1], row, GUIEditor_Column[1], value[1], false, false) 
            guiGridListSetItemText(GUIEditor_Grid[1], row, GUIEditor_Column[3], value[3], false, false) 

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted
local skins = { {"CJ",0,1000}, {"Idk",1,1000} } 
  
function setskinsongrid () 
        for key, value in ipairs(skins) do 
            local row = guiGridListAddRow(GUIEditor_Grid[1]) 
            guiGridListSetItemText(GUIEditor_Grid[1], row, GUIEditor_Column[2], id[2], false, false) 
            guiGridListSetItemText(GUIEditor_Grid[1], row, GUIEditor_Column[1], name[1], false, false) 
            guiGridListSetItemText(GUIEditor_Grid[1], row, GUIEditor_Column[3], money[3], false, false) 
end 
end 
addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), setskinsongrid ) 

Nothing happens.

Need paid scripter just pm me i will accept every job!

Posted
            guiGridListSetItemText(GUIEditor_Grid[1], row, GUIEditor_Column[2], id[2], false, false) 
            guiGridListSetItemText(GUIEditor_Grid[1], row, GUIEditor_Column[1], name[1], false, false) 
            guiGridListSetItemText(GUIEditor_Grid[1], row, GUIEditor_Column[3], money[3], false, false) 

There's the problem, you are using tables that don't exist.

Use this:

            guiGridListSetItemText(GUIEditor_Grid[1], row, GUIEditor_Column[2], value[2], false, false) 
            guiGridListSetItemText(GUIEditor_Grid[1], row, GUIEditor_Column[1], value[1], false, false) 
            guiGridListSetItemText(GUIEditor_Grid[1], row, GUIEditor_Column[3], value[3], false, false) 

Working thanks!

Need paid scripter just pm me i will accept every job!

Posted

You're welcome.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

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...