Commands
Commands
This page documents all available commands in the ATM Owner System.
Player Commands
/atms
/atmsDescription: Toggle ATM blips on/off on the map
Usage:
/atmsWhat It Does:
Shows/hides all ATM blips on the map
Toggles the blip display state
Useful for finding ATMs or reducing map clutter
Example:
/atms -- Toggle blips on/offNotes:
Requires
Config.ATMBlip.Enabled = trueto workBlips show as "ATM [ID]" on the map
State persists until toggled again or server restart
/addatm
/addatmDescription: Add a new ATM to the database at your current location
Usage:
What It Does:
Opens a menu to configure the new ATM
Prompts for owner identifier (optional)
Prompts for location selection
Prompts for tax percentage
Prompts for purchase price
Prompts for rent amount
Adds ATM to database at your current coordinates
Menu Flow:
Owner Identifier (optional) - Leave blank for unowned ATM
Location - Select from: North, South, Paleto, Sandy Shores
Tax Percentage - Enter tax rate (e.g., 10 for 10%)
Price - Enter purchase price (e.g., 10000)
Rent - Enter rent amount (e.g., 500)
Example:
Notes:
Must be used at the location where you want the ATM
Coordinates are taken from your current position
ATM will be available for purchase after creation
Default settings can be changed later
/toggleatmblips
/toggleatmblipsDescription: Alternative command to toggle ATM blips (same as /atms)
Usage:
What It Does:
Same functionality as
/atmsToggles ATM blips on/off
Example:
/nearestatm
/nearestatmDescription: Find and display information about the nearest ATM
Usage:
What It Does:
Finds the nearest ATM within 50 meters
Displays ATM ID and distance
Shows notification with details
Example Output:
Notes:
Only shows ATMs within 50 meters
If no ATM nearby, shows distance to nearest ATM
Useful for finding ATM IDs for management
Admin/Development Commands
/scanatms_live
/scanatms_liveDescription: Start/stop live scanning for ATM props on the map
Usage:
Parameters:
radius (optional): Scan radius in meters (default: 50.0)
interval (optional): Scan interval in milliseconds (default: 200)
What It Does:
Starts scanning for ATM prop models in the game world
Detects ATMs within the specified radius
Saves discovered ATMs to
atm_scan.jsonRun again to stop scanning
Example:
Detected Models:
prop_atm_01prop_atm_02prop_atm_03prop_fleeca_atmprop_atm_01_dam
Notes:
Best used while flying around the map
Scans continuously until stopped
Results saved to
atm_scan.jsonin resource folderUse
/importatmsto import scanned ATMs
/importatms
/importatmsDescription: Import scanned ATMs from atm_scan.json to database
Usage:
What It Does:
Reads scanned ATMs from
atm_scan.jsonImports ATMs in chunks of 100
Adds to database with default settings:
Price: $10,000
Tax: 10%
Location: Auto-categorized by coordinates
Rent: $0
Example:
Output:
Notes:
Must run
/scanatms_livefirst to create scan fileImports in chunks to prevent database overload
Skips ATMs that already exist (by coordinates)
Shows progress in server console
Command Permissions
Default Permissions
Player Commands (Available to all players):
/atms/toggleatmblips/nearestatm
Admin Commands (No special permissions required, but use responsibly):
/addatm/scanatms_live/importatms
Note: The script doesn't enforce command permissions by default. If you need permission-based commands, you can add permission checks in the command handlers.
Command Examples
Example 1: Finding ATMs
Example 2: Adding New ATMs
Example 3: Bulk Import
Example 4: Managing Blips
Command Troubleshooting
Commands Not Working
Issue: Commands not responding
Solutions:
Check if resource is started:
ensure godv_buyatmCheck server console for errors
Verify dependencies are loaded
Try restarting the resource
/addatm Menu Not Appearing
/addatm Menu Not AppearingIssue: Menu doesn't open when using /addatm
Solutions:
Check if
ox_libis installed and runningVerify you're not in a vehicle or menu
Check server console for errors
Try again after a moment
/scanatms_live Not Finding ATMs
/scanatms_live Not Finding ATMsIssue: Scanner not detecting ATMs
Solutions:
Increase scan radius:
/scanatms_live 100Fly closer to ATM locations
Check if ATM models exist in game world
Verify scanner is running (notification should appear)
/importatms Not Working
/importatms Not WorkingIssue: Import fails or shows errors
Solutions:
Verify
atm_scan.jsonexists in resource folderCheck file is not empty
Verify database connection is working
Check server console for specific errors
Adding Custom Commands
Example: Custom Command Handler
You can add custom commands by modifying the client or server files:
Client-Side Command:
Server-Side Command:
With Permission Check:
Command Aliases
You can create command aliases by registering multiple commands:
For more information, see:
Installation Guide
Configuration Guide
Troubleshooting
Last updated