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:
| Resource | Capabilities |
|---|---|
rlx | commands.execute, players.kick, players.control, entities.foreign, dimensions.manage, world.clock, world.weather, net.connect (Discord webhooks) |
rlx_admin | commands.execute, players.kick, players.ban, entities.foreign |
rlx_chat | commands.execute |
rlx_voice | voice.manage |
rlx_whitelist | players.whitelist |
rlx_police, rlx_ambulance, rlx_basics, rlx_vehiclekeys | entities.foreign |
| The others | none ("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):
"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.