Hi, I’m trying to learn how to develop scripts in lua. I have a question with the arguments that are passed in callback functions like this(it’s just an example):
RegisterCommand("ping", function(source, args, rawCommand)
if (source > 0) then
TriggerClientEvent("chat:addMessage", -1, {
args = {
GetPlayerName(source),
"PONG!"
},
color = { 5, 255, 255 }
})
else
print("This command was executed by the server console, RCON client, or a resource.")
end
end, false)
what source, args and rawCommand are?
I’m sorry for my bad English if it’s caused any confusion