FPtje / darkrpmodification

This is the addon with which you can modify DarkRP. Do not edit DarkRP files, edit files in this addon instead.
MIT License
122 stars 239 forks source link

GM.Config.maxlawboards doesn't work #137

Closed Potatosayno closed 5 years ago

Potatosayno commented 5 years ago

Description of the bug

-- In the DarkRP modification settings.lua when trying to change GM.Config.maxlawboards to lets say 2, you are able to spawn 7. I have it set on 2, and Mayor's are still able to spawn 7 of these (Yes, I did double check it was on 2, and I even went far enough to test it on my private server).

How to make the bug happen

-- Simply change GM.Config.maxlawboards in Settings.lua to 2 (I haven't tested other values) and you still should be able to spawn 7 lawboards.

Lua errors

-- None

Why the developer of DarkRP is responsible for this issue

-- This is an issue with darkrpmodification, and this script has been made by the DarkRP developer.

FPtje commented 5 years ago

Actually, 2 is the default maximum for lawboards. I'm not sure what you're getting it from, but I'm hitting the limit when trying to spawn the third lawboard. hl2_2019-04-14_11-33-28

When changing the limit, DarkRP changes accordingly, though after a changelevel.

FPtje commented 5 years ago

The most likely cause of this issue is that you have some other Lua script setting it to 7.