Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding hooks for controlling interaction with the ModularCarCodeLock. #519

Closed
wants to merge 1 commit into from

Conversation

IIIaKa
Copy link
Contributor

@IIIaKa IIIaKa commented Jul 1, 2024

Adding hooks for controlling interaction with the ModularCarCodeLock.

object OnVehicleNewLockRequest(ModularCarGarage garage, BasePlayer player, string newPass) - Called when attempting to set a new password for the ModularCar through the ModularCarGarage. Returning a non-null value overrides default behavior.

object OnVehicleRemoveLockRequest(ModularCarGarage garage, BasePlayer player) - Called when attempting to remove the ModularCarCodeLock from the ModularCar through the ModularCarGarage. Returning a non-null value overrides default behavior.

@IIIaKa IIIaKa closed this Jul 1, 2024
@IIIaKa IIIaKa reopened this Jul 1, 2024
@IIIaKa IIIaKa closed this Jul 1, 2024
@IIIaKa IIIaKa reopened this Jul 1, 2024
@IIIaKa IIIaKa closed this Jul 7, 2024
@IIIaKa IIIaKa reopened this Jul 7, 2024
@IIIaKa IIIaKa closed this Jul 22, 2024
@IIIaKa IIIaKa reopened this Jul 22, 2024
@MrBlue
Copy link
Member

MrBlue commented Jul 31, 2024

Merged with changes, thanks!

- OnLockRemove(ModularCar, BasePlayer)
- OnCodeChange(ModularCar, BasePlayer, string)
- CanDestroyLock(BasePlayer, ModularCar, BaseVehicleModule)
- CanLock(BasePlayer, ModularCar, ModularCarCodeLock)

@MrBlue MrBlue closed this Jul 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants