Skip to content

Conversation

@TechStreetDev
Copy link

This pull request adds BEAMMP_PROVIDER_DISABLE_MP_SET variable (true/false/1/0) to disable MP::Set for providers.


By creating this pull request, I understand that code that is AI generated or otherwise automatically generated may be rejected without further discussion.
I declare that I fully understand all code I pushed into this PR, and wrote all this code myself and own the rights to this code.

src/LuaAPI.cpp Outdated

void LuaAPI::MP::Set(int ConfigID, sol::object NewValue) {
if (mDisableMPSet) {
beammp_lua_error(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could the lua state name/plugin name be included instead of "A script"?
and could you use the format version of the log functions to make the code cleaner?
Example:

beammp_lua_errorf("Respond failed, dropping client {}", PlayerID);

Copy link
Author

@TechStreetDev TechStreetDev Jan 18, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could the lua state name/plugin name be included instead of "A script"?

I could not figure out how to do this, and there is no other method which does this as far as I can tell (to copy from)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants