Nigga is used for a insult in a agrument to look cool.Mostly used at the end of a sentence.
"Shut the fuck up bitch ass nigga." "I know you ain't talking nigga."