Installation — foltone_elevator_builder
Requirements
- FiveM with Lua 5.4
- ox_target (optional) — For target-based interaction instead of E key
Download
Download the script from your Tebex account and place the folder in your resources/ directory.
Server Configuration
Add to your server.cfg:
ensure foltone-elevator-builder
Note: This script is standalone — it doesn’t require any framework (ESX, QBCore, etc.). Data is saved in the
json/data.jsonfile.
No Database Required
Unlike other scripts, Elevator Builder does not use a SQL database. All elevator data is stored in the json/data.json file in JSON format.
Admin Command
The script registers the /fab command to open the elevator admin menu. You can change this command in client/cl_editable.lua:
RegisterCommand("fab", function(source, args)
TriggerEvent("foltone_ascenseur:open_menu")
end)
Important: Make sure to restrict access to this command via your ACE permissions system to prevent all players from creating elevators.
ox_target (optional)
If you want to use ox_target for interaction:
- Make sure
ox_targetis running on your server - Enable the option in
Config.lua:
Config.use_target = true
The script automatically detects ox_target. If use_target is enabled but ox_target is not installed, the script automatically falls back to E key interaction.
Verification
After restarting your server:
- Type
/fabin chat - The admin NUI interface should open
- Create an elevator with 2 floors to test
- Markers should appear at the defined positions