Installation Guide
Installation Guide: ATM Owner System
Follow this guide to install and set up the ATM Owner System on your FiveM server.
1️⃣ Install Dependencies
Required Dependencies
The script requires the following dependencies to function properly:
ox_lib
ox_lib is required for:
Progress bars and notifications
Text UI components
Input dialogs
Context menus
Installation:
Download from overextended/ox_lib
Place in your
resourcesfolderAdd to
server.cfg:ensure ox_lib
ic3d_lib
ic3d_lib is required for:
Framework abstraction (QBCore/ESX/Qbox compatibility)
Player identifier resolution
Bank/cash operations
Installation:
The library is included with the script in the
ic3d_libfolderEnsure it's in your
resourcesfolderAdd to
server.cfg:ensure ic3d_lib
oxmysql
oxmysql is required for:
Database operations
MySQL connection pooling
Installation:
Download from overextended/oxmysql
Place in your
resourcesfolderAdd to
server.cfg:ensure oxmysqlConfigure database connection in
oxmysql/resource/oxmysql.sql
2️⃣ Database Setup
Import SQL File
Open your MySQL database management tool (phpMyAdmin, HeidiSQL, etc.)
Select your FiveM database
Import the
atm.sqlfile located in the script folderVerify all tables were created:
owned_atmsatm_transactionsatm_employeesatm_admin_logsatm_movementsatm_permissions
Verify Database Connection
Ensure your oxmysql configuration is correct and the database connection is working.
3️⃣ Install the Script
Step 1: Place Script Files
Extract the script to your
resourcesfolderEnsure the folder structure is:
Step 2: Configure server.cfg
Add the following to your server.cfg:
Important: Dependencies must be started before the script!
4️⃣ Configure the Script
Basic Configuration
Open config.lua and configure the following:
ATM Blip Configuration
ATM Manager NPC Configuration
Tax Permission Configuration
5️⃣ Add ATMs to Database
Method 1: Use /addatm Command (Recommended)
In-game, stand at the location where you want to add an ATM
Run the command:
/addatmFollow the menu prompts:
Enter owner identifier (optional, leave blank for unowned)
Select location (North, South, Paleto, Sandy Shores)
Enter tax percentage (e.g., 10)
Enter price (e.g., 10000)
Enter rent amount (e.g., 500)
Method 2: Import Scanned ATMs
Use the
/scanatms_livecommand to scan for existing ATM propsFly around the map to discover ATMs
Run
/importatmsto import scanned ATMs to databaseATMs will be imported with default settings (price: $10,000, tax: 10%)
Method 3: Manual SQL Insert
You can manually insert ATMs via SQL:
6️⃣ Verify Installation
Check Server Console
After starting the server, check for:
✅ No error messages related to the script
✅ Database connection successful
✅ All dependencies loaded
✅ Script started without errors
Test In-Game
Check NPC Spawn: Visit the configured NPC location to verify it spawned
Test Command: Run
/atmsto toggle ATM blipsTest Management: Interact with NPC or use
/addatmcommandCheck Database: Verify ATMs are being created/loaded correctly
7️⃣ Ready to Go! 🚀
Your ATM system is now installed and configured!
Next Steps
Add ATMs: Use
/addatmor import scanned ATMsConfigure Settings: Adjust tax rates, limits, and permissions in
config.luaTest Features: Purchase an ATM, hire employees, test tax collection
Customize UI: Modify
web/files for custom styling (if needed)
Troubleshooting
If you encounter issues, check the Troubleshooting Guide for common solutions.
💡 Tip: Enable Config.Debug = true during setup to see detailed logs, but remember to disable it in production for better performance.
Last updated