Skip to content

Start

LS:MP capabilities ​

LS:MP protects some server functions with capabilities: kicking a player, setting the clock or the weather, voice, moving players between dimensions, acting on entities created by another resource or on players' characters… A resource declares in its manifest the ones it uses, with a reason the server owner reads; the server grants exactly that list and refuses the rest.

Every RLX resource declares its own:

ResourceCapabilities
rlxcommands.execute, players.kick, players.control, entities.foreign, dimensions.manage, world.clock, world.weather, net.connect (Discord webhooks)
rlx_admincommands.execute, players.kick, players.ban, entities.foreign
rlx_chatcommands.execute
rlx_voicevoice.manage
rlx_whitelistplayers.whitelist
rlx_police, rlx_ambulance, rlx_basics, rlx_vehiclekeysentities.foreign
The othersnone ("capabilities": [])

Most of the work goes through rlx (your resource asks, rlx does it with its own capabilities): a resource that only uses RLX.* usually needs none.

When one is missing. The server owner can take a capability away (admin panel: Resources > name > Permissions). The functions that need it then fail in silence in the game, so every resource that loads lib/rlx.lua checks its list when it starts and says it once in the console:

[RLX] rlx_voice: not granted by the server, these features will not work: voice.manage (Proximity voice, radio…). Grant them in the admin panel: Resources > rlx_voice > Permissions.

Your resource. Declare the capabilities your server scripts use, with a reason (200 characters at most):

json
"capabilities": { "players.kick": "Kicks the players who fail the entry test." }

"capabilities": [] declares that it needs none. Always declare the key: without it, LS:MP gives a resource default rights instead of exactly what it uses. RLX.CheckCapabilities() runs the check again.