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

[Suggestion] A Way to Return State of Interior #56

Open
Peekofwar opened this issue Sep 20, 2021 · 1 comment
Open

[Suggestion] A Way to Return State of Interior #56

Peekofwar opened this issue Sep 20, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@Peekofwar
Copy link

Peekofwar commented Sep 20, 2021

I was making a script that lets me open the safes via commands, and I thought that being able to get the current state of the safe door would make it easier to change its state without the user needing to specify open or shut.

Something like

local function fo4(i)
	FinanceOffice = exports['bob74_ipl']:GetFinanceOffice4Object()
	if i[1] == "gunsafe" then
		local state = FinanceOffice.SafeState("left")
		if state then
			FinanceOffice.Safe.Close("left")
		else
			FinanceOffice.Safe.Open("left")
		end
	end
end

/fo4 gunsafe

@TheIndra55 TheIndra55 added the enhancement New feature or request label Apr 6, 2024
@alberttheprince
Copy link
Contributor

I know this is nearly 4 years later, but cool ideas not sure if applicable to Bob ipl though as a function?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants