Jump to content

Help.


Recommended Posts

Posted

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 

Retired MTA!. Playing GTA V online now.

F1WT6Cz.gif

Posted

same error but its written with Arguement 1 not 2.

I used this export

exports["notices"]:addNotification("Test",source,255,success);

Retired MTA!. Playing GTA V online now.

F1WT6Cz.gif

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