Desaster Posted November 17, 2013 Share Posted November 17, 2013 I have a text that I change with a triggered function with guiSetText but when I change it the whole server will see that ammount till he refresh the page thats bad how to remove it ? and wet it visible just to the person who have the window ? Link to comment
Desaster Posted November 17, 2013 Author Share Posted November 17, 2013 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
Castillo Posted November 17, 2013 Share Posted November 17, 2013 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. 1 Link to comment
Recommended Posts