View Single Post
  #1  
Old 12-08-2012, 07:04 AM
brokk brokk is offline
Registered User
Join Date: May 2012
Posts: 84
brokk is on a distinguished road
Item description

How do I make the Gui display the item description?

In the actual weapon I have this

PHP Code:
//#CLIENTSIDE
function onCreated() {
 
obj.description "This is a test.";
 } 
In the inventory I have this for the display text part

--This is done after item is clicked.
PHP Code:
      new GuiTextCtrl("Inventory_Item_Text") {
        
profile GuiBlueTextProfile;
        
text obj.description;
        
screenwidth/2-700+480;
        
screenheight/2-350+140;
        
layer 2;
      } 
I may be way off. But I'm still trying to learn
Reply With Quote