rcore.cz
  • rcore.cz
  • Installation
  • github wiki
  • ESX
    • ESX Instance
    • Jobs
    • esx_datastore
  • Natives
    • Markers
    • 3D Text
    • Common functions
    • Command system
    • Camera API
    • Objects
    • Blips
    • Discord sender
  • Our links
    • Discord
    • Github
    • Our service
Powered by GitBook
On this page
  • Classic command
  • Group command
  • Job command
  • Rcon command

Was this helpful?

  1. Natives

Command system

Command system used native RegisterCommand with permission system inside

Classic command

your_serverside.lua
rcore = exports.rcore
rcore:addCmd('testcmd',function(source,args,rawCmd) 
    print('Just make cmd for all but not for rcon')
end)

Group command

your_serverside.lua
rcore = exports.rcore
rcore:addGroupCmd('testcmd','superadmin',function(source,args,rawCmd) 
    print('Just make cmd only for superadmin group and not for rcon')
end)

Job command

your_serverside.lua
rcore = exports.rcore
rcore:addJobCmd('arrest','police',function(source,args,rawCmd) 
    print('Just make cmd only for police job and not for rcon')
end)

Rcon command

your_serverside.lua
rcore = exports.rcore
rcore:addRconCmd('testcmd',function(source,args,rawCmd) 
    print('Make command only for console use')
end)

PreviousCommon functionsNextCamera API

Last updated 4 years ago

Was this helpful?