Jump to content

Help.


Recommended Posts

Hello people,

i tried to launch a script today and found that error and can't solve it till now D:.

Bad Arguement @ TriggerClientEvent [ Expected Element @ Arguement 2, got string ["addnotficiation"] in Line 3

function addNotification(player, text, type) 
    if (player and text and type) then 
        triggerClientEvent(player, 'addNotification', player, text, type); 
    end 
end 

Link to comment

I forgot one thing from script, try this:

  
function addNotification(thePlayer, text, _type) 
    if (thePlayer and text and _type) then 
        triggerClientEvent(thePlayer, 'addNotification', thePlayer, text, _type); 
    end 
end 

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...