EndCore Framework

Commands

Every chat command en-core registers, who can use it, its arguments, and how admin permissions are granted.

en-core registers a small set of admin commands for managing players and two commands everyone can use. Commands from other resources are documented on their own pages.

Permissions

Admin commands are registered through the library's encore.addCommand with restricted = 'group.admin'. That grants the ACE command.<name> to group.admin, so anyone in that group can run them. Add yourself as an admin in server.cfg:

cfg
add_ace group.admin command allow
add_principal identifier.fivem:<your-fivem-id> group.admin

Wherever a command takes a player, you can type their server ID or me for yourself. See Lib commands for how arguments are parsed.

Admin commands

CommandArgumentsWhat it does
/saveallnoneSaves every online player
/setjobtarget job [grade]Sets a player's job and grade
/moneyadd|remove|set target type amountChanges a player's money. The reason is recorded as "Admin command by <name>".
/charinfotargetShows a notification with the player's name, citizenid, job, group, cash, bank and survival stats
/survivaltarget stat valueSets one survival stat. stat is hunger, thirst, radiation, infection, immunity or temperature.
/radzonetarget rateSets a player's radiation exposure per tick. 0 clears it.
/xpadd|remove|set target amountChanges a player's XP
/groupdisbandidDisbands a group by its id. The id is shown in /charinfo.

Player commands

CommandArgumentsWhat it does
/groupaction [details]Manages your group: create TAG Name, invite ID, accept, decline, leave, info
/logoutnoneSaves and returns you to character selection

Kicking members, changing ranks and transferring leadership are only available in the en-party menu.

Examples

text
/saveall
/setjob 12 medic 2
/money add 12 cash 500
/money remove me bank 250
/charinfo 12
/survival me radiation 0
/survival 12 temperature 98.6
/radzone 12 15
/radzone 12 0
/xp set me 3396
/groupdisband 4

/group create DUST Dust Walkers
/group invite 17
/group accept
/group info
/logout