This guide will help you install and configure the alt:V Developer Tools on your server.
Before installing, make sure you have:
- alt:V Server (latest stable version)
- Node.js environment set up
- Basic knowledge of alt:V resource management
- Download the latest release from GitHub Releases
- Extract the files to your alt:V
resources/directory - Rename the folder to
devif necessary
cd /path/to/your/altv/resources/
git clone https://github.com/dev-leva1/altv-dev-tools.git devAdd the resource to your server.toml:
# Server configuration
name = 'My alt:V Server'
host = '0.0.0.0'
port = 7788
players = 128
announce = false
gamemode = 'Freeroam'
website = 'example.com'
language = 'en'
description = 'My awesome alt:V server'
# Add dev resource to the list
resources = [
'chat',
'freeroam',
'dev' # Add this line
]
# Module configuration
modules = [
'js-module'
]The resource comes with a pre-configured resource.toml:
type = 'js'
main = 'server/index.js'
client-main = 'client/index.js'
client-files = [
'client/html/*'
]
# Optional: Enable debug mode
# debug = trueEnsure your file structure looks like this:
resources/
└── dev/
├── resource.toml
├── README.md
├── LICENSE
├── server/
│ └── index.js
├── client/
│ ├── index.js
│ └── html/
│ ├── index.html
│ ├── style.css
│ └── script.js
└── shared/
└── index.js
Edit shared/index.js to add custom teleport locations:
export const TELEPORT_LOCATIONS = {
'Airport': { x: -1037.5, y: -2737.6, z: 20.2 },
'Vinewood': { x: 120.9, y: 564.1, z: 183.96 },
'Downtown': { x: 228.3, y: -993.3, z: 29.4 },
// Add your custom locations here
'Custom Location': { x: 100, y: 200, z: 30 }
};Add your favorite vehicles to the spawn list:
export const VEHICLES = {
'Adder': 'adder',
'Zentorno': 'zentorno',
'T20': 't20',
// Add custom vehicles here
'Custom Car': 'your_model_name'
};Configure available weather types:
export const WEATHER_TYPES = [
'CLEAR',
'EXTRASUNNY',
'CLOUDS',
'OVERCAST',
'RAIN',
'CLEARING',
'THUNDER',
'SMOG',
'FOGGY',
'XMAS',
'SNOWLIGHT',
'BLIZZARD'
];- Start your alt:V server
- Connect to the server
- Press F2 to open the developer panel
- Test the basic functions:
- Toggle noclip with F3
- Toggle godmode with F4
- Use the interface to spawn vehicles
- Try teleportation features
If you want to restrict access, you can implement a permission system by modifying server/index.js:
// Example permission check
function hasPermission(player) {
// Implement your permission logic here
return player.getMeta('isDeveloper') || false;
}
// Use in event handlers
alt.onClient('dev:toggleNoclip', (player) => {
if (!hasPermission(player)) {
player.emit('dev:error', 'No permission');
return;
}
// ... rest of the function
});To restrict to admins only, modify the permission check:
function hasPermission(player) {
return player.getMeta('isAdmin') === true;
}-
Panel doesn't open (F2)
- Check if resource is loaded: look for "dev resource started" in console
- Verify resource is in
server.toml - Check browser console (F12) for JavaScript errors
-
Functions don't work
- Check server console for errors
- Verify server-side events are being received
- Ensure alt:V client is up to date
-
UI styling issues
- Clear browser cache (Ctrl+F5)
- Check if CSS files are loading properly
- Verify client-files in resource.toml
-
Permission errors
- Disable permission checks for testing
- Verify admin status if using permission system
- Check server logs for authentication errors
Enable debug mode in resource.toml:
debug = trueThis will provide additional console output for troubleshooting.
Check these log locations:
- Server logs:
server.login alt:V root directory - Browser console: F12 → Console tab
- Resource logs: Look for
[DEV]prefixed messages
- Backup your custom configurations
- Download the latest version
- Replace old files with new ones
- Restore your custom configurations
- Restart the server
This resource is compatible with:
- alt:V 15.0+ (latest stable)
- Node.js 16.0+
- Modern browsers (Chrome, Firefox, Edge)
After installation, verify everything works:
- Resource starts without errors
- F2 opens the developer panel
- F3 toggles noclip
- F4 toggles godmode
- Teleportation works
- Vehicle spawning works
- Weather/time controls work
- Player management works
- Performance monitoring displays data
- Read the README.md for feature overview
- Check CONTRIBUTING.md for development info
Need help? Open an issue on GitHub!