Raised This Month: $ Target: $400
 0% 

register_new_item () It's a stock, how?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
SnoW
Veteran Member
Join Date: Oct 2008
Location: Finland WisdomNuggets: 8
Old 06-19-2009 , 16:18   Re: register_new_item () It's a stock, how?
Reply With Quote #6

PHP Code:
add_new_itemid )
{
     new 
oldmenumenu;
     
player_menu_infoidoldmenumenu );
     if( 
menu //New menu
     
{
           
client_cmdid"slot10" );
           
menu_additemmenu"New item" );
           
menu_displayidmenu );
     }
     
//else { } //Old menu action if wanted

This can only add an item to a menu player is currently viewing. Also we can't know what the menu handler does to it's items and this is a bad idea anyway. If you are wanting to do this properly you should use dynamic natives.
SnoW is offline
Send a message via MSN to SnoW
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 15:37.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode