Welcome to nanos GbR

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more!

This message will be removed once you have signed in.

Sign in to follow this  
Daranix

[Package] Just Cause toast package

5 posts in this topic

Just cause 3 toast package

a5ad5f3e-e64f-11e6-8ac8-96b4a8ab5bc7.png

Get it on github

Toast's for Just Cause 3, using jQuery toast plugin

For make your customs Toast and see about the plugin check Demo

How to use:

From CEF:

jcmp.CallEvent('cef_toast_show', JSON.stringify({
    heading: 'Warning',
    text: 'It is going to be supper easy for you to use ;)',
    showHideTransition: 'plain',
    icon: 'warning'
}));

From client side:

jcmp.events.Call('client_toast_show', {
    heading: 'Warning',
    text: 'It is going to be supper easy for you to use ;)',
    showHideTransition: 'plain',
    icon: 'warning'
});

From server side:

jcmp.events.Call('toast_show', player,  {
    heading: 'Information',
    text: "Hi i'm a info toast!",
    icon: 'info',
    loader: true,
    loaderBg: '#9EC600',
    position: 'top-right',
    hideAfter: 10000
});

 

Share this post


Link to post
Share on other sites

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

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.