registerCommand
Paramaters
Type
param
required
type
example
ps.registerCommand('ps-print',{
admin = true,
help = 'Turn On Types Of Prints',
description = { -- gives chat message for args required
{
name = 'script',
help = 'Script Name'
},
{
name = 'type',
help = 'Type of print to turn on'
}
}
}, function(source, args, rawCommand)
local resource = args[1]
local type = args[2]
TriggerClientEvent('ps_lib:client:print', source, key, resource, type)
TriggerEvent('ps_lib:print', resource, type)
end)Last updated