Jump to content

guiSetText


Desaster

Recommended Posts

    function haha( balance, actions ) 
        --SetTimer(haha, 50, 1) 
        if ( guiGetVisible ( action1 ) ) then 
        --if balance then 
        --guiSetText ( money, "$ 0" ) 
        --else 
        guiSetText ( money, tostring ( balance ) ) 
        --end 
        guiSetEnabled (action1, false) 
        guiGridListClear ( action1 ) 
        for index, action in ipairs ( actions ) do 
            local row = guiGridListAddRow ( action1 ) 
            guiGridListSetItemText ( action1, row, 1, tostring ( action[ "action" ] ), false, false ) 
        end 
        end 
    end 
addEvent ( "gang.returnGangBank", true ) 
addEventHandler ( "gang.returnGangBank", root, haha) 

Link to comment

Post the server side part where you trigger: "gang.returnGangBank".

Edit: Now that I compared your code to one of my scripts, I noticed that they're pretty much the same thing.

addEvent ( "gangSystem:returnGangBank", true ) 
addEventHandler ( "gangSystem:returnGangBank", root, 
    function ( balance, actions ) 
        guiSetText ( gangGUI[ "gangPanel" ][ "money_balance" ], tostring ( balance ) ) 
        guiGridListClear ( gangGUI[ "gangPanel" ][ "money_action_list" ] ) 
        for index, action in ipairs ( actions ) do 
            local row = guiGridListAddRow ( gangGUI[ "gangPanel" ][ "money_action_list" ] ) 
            guiGridListSetItemText ( gangGUI[ "gangPanel" ][ "money_action_list" ], row, 1, tostring ( action[ "action" ] ), false, false ) 
        end 
    end 
) 

And I know why, it's because one of your servers ( SORC:ZM ) is using leaked scripts of my property.

Topic locked.

  • Haha 1
Link to comment
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

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