Jump to content

Notifications... Help


Recommended Posts

Dear Community,

i did allready post actually another topic but thats about another script

Today i found an script [NOTIFICATIONS]: https://community.multitheftauto.com/in ... ls&id=5812

Export all included but iwanted to use it on an script with export but it doesnt really seems to work can anyone help ?

  
The script:: exports["notifications"]:showBox("info","This vehicle is locked to the the following Role's: "..tostring(datato)) 
Normal: output("This vehicle is locked to the the following Role's: "..tostring(datato), player, 200, 0, 0) 

Link to comment

First, Make sure you didn't changed the resource name.

Second, it must be the resource that called ' notifications ' is running .

The arguments:

-- The Types: 
'error' 
'warning' 
'info' 
  
 -- Server Side: 
exports.notifications:showBox( element player, string type, string message ); 
  
-- Client Side: 
exports.notifications:showBox( string type, string message ); 

Here an example for you :

--Server side: 
addEventHandler ( 'onPlayerJoin', root, 
    function( ) 
        exports.notifications:showBox( source, 'info', 'Welcome ' . . getPlayerName ( source ) . . ' to ' . . getServerName( ) . . '!' ); 
    end 
); 

  • Confused 1
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...