# Elevator script

1. Navigate to **cfx-nteam-milehigh*****/elevator/elevator-editable.lua***
2. Set ***Config.EnableElevator*** to ***true***
3. Using ***ox\_lib point*** you can decide if you want marker in ***Config.DrawSprite***

***Make sure you have started ox\_lib before our asset!***

***If you don***'***t have ox\_lib download it from this link***

[***https://github.com/overextended/ox\_lib/releases***](https://github.com/overextended/ox_lib/releases)

Here is preview of ***elevator-editable.lua***

````
```lua
Config = {}

Config.EnableElevator = true

Config.DrawSprite = true

Config.Distance = 2
Config.Marker = 2
Config.MarkerSize = { x = 0.3, y = 0.3, z = 0.3 }

Config.Text = {

	['elevator'] = 'Elevator',
	['lobby'] = 'Lobby',
	['use_elevator'] = '[E] - To use Elevator',
	['wrong_pin'] = 'Wrong PIN',
	['app_one'] = 'Appartment I',
	['app_two'] = 'Appartment II',
	['app_one_desc'] = 'On Sale | PIN: 0000',
	['app_two_desc'] = 'On Sale | PIN: 0000',

	['off_one'] = 'Office I',
	['off_one_desc'] = 'On Sale',
	['off_two'] = 'Office II',
	['off_two_desc'] = 'On Sale',
}



-- only if using ox_lib point | Config.Teleporter = 3

Config.EnterKey = 38 -- E (only ox_lib point)


Config.AppartmentLobby = { x = -165.3342, y = -991.4573, z = 29.5126 }
Config.AppartmentIcon = "home"

Config.AppartmentOne = { x = -151.4349, y = -954.3071, z = 239.2305 }
Config.AppartmentOnePIN = "0000"

Config.AppartmentTwo = { x = -160.5766, y = -994.4111, z = 252.4352 }
Config.AppartmentTwoPIN = "0000"


Config.SpaLobby = { x = -163.9335, y = -987.7642, z = 29.5126 }

Config.SpaLoc = { x = -146.7868, y = -990.8665, z = 189.1334 }


Config.OfficeLobby = { x = -162.4958, y = -983.8782, z = 29.5126 }
Config.OfficeIcon = "building"

Config.OfficeOne = { x = -153.6317, y = -963.6077, z = 227.0400 }

Config.OfficeTwo = { x = -153.7554, y = -979.8663, z = 219.8031 }


-- You can add here checks you want. For Example: Did player bought ticket for spad
--                                                Does he has VIP 
--                                                ETC...

AddEventHandler("ndev_elevator:enterSpa", function()
	local pid = PlayerPedId()
	SetEntityCoords(pid, Config.SpaLoc.x, Config.SpaLoc.y, Config.SpaLoc.z, false, false, false, true)
end)


-- Here you can make checks for jobs or smth like that
AddEventHandler("ndev_elevator:enterOfficeOne", function()
	local pid = PlayerPedId()
	SetEntityCoords(pid, Config.OfficeOne.x, Config.OfficeOne.y, Config.OfficeOne.z, false, false, false, true)
end)

AddEventHandler("ndev_elevator:enterOfficeTwo", function()
	local pid = PlayerPedId()
	SetEntityCoords(pid, Config.OfficeTwo.x, Config.OfficeTwo.y, Config.OfficeTwo.z, false, false, false, true)
end)
```
````


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://nteamdev.gitbook.io/nteam-development/maps/mile-high/elevator-script.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
