Jump to content

[HELP] dgsComboBoxGetItemData


Yurigarga

Recommended Posts

DGS = exports.dgs
function clientsideResourceStart ()
    local numberList = DGS:dgsCreateComboBox ( 10,270,150,30,"test",false )
    local item = DGS:dgsComboBoxAddItem ( numberList )
    local myItem = DGS:dgsComboBoxSetItemText ( numberList, item, tostring( math.random(0, 10) ^ 100 ) )
    DGS:dgsComboBoxSetItemData( numberList, item, "Test" )
    local myItemData = DGS:dgsComboBoxGetItemData( numberList, item )
    outputDebugString ( myItemData )  
end
addEventHandler ( "onClientResourceStart", resourceRoot, clientsideResourceStart )

c.lua:7 call: failed to call 'dgs:dgsComboBoxGetItemData' [string"?"]

I'm about to go crazy. Why does it give an error???? WHYYYYY!!!!!????????? 

 

 

 

Edited by Yurigarga
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...