Stuyk / altv-athena

A Roleplay Framework for alt:V by Stuyk
https://athenaframework.com/
229 stars 149 forks source link

Fix door controller command #392

Closed Dav-Renz closed 1 year ago

Dav-Renz commented 1 year ago

Fixed an error where the /toggledoor command would state the inverse state of the toggled door. This happened because for the output the value of the isLocked variable was inverted after the variable was changed to toggle the lock.

Additionally, I added a check so only doors in a radius of 5 meters can be toggled. After some testing, this seems like an overly excessive distance, but I left it at 5. This distance should be set by the server admin to their liking.

github-actions[bot] commented 1 year ago

Click on command line instructions below for checkout information of this PR.