Skip to content
View in the app

A better way to browse. Learn more.

LCPDFR.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

This file has been reported as outdated or no longer maintained. For further information, see the file comments.

ND_VehicleWhitelist V0.2

(0 reviews)

7 Screenshots

Overview
ND_VehicleWhitelist is a comprehensive Discord role-based vehicle permission system for FiveM servers. This script allows server administrators to restrict vehicle usage based on Discord roles, ensuring that only authorized players can use specific vehicles.

 

Key Features
- Role-Based Vehicle Permissions
- Restrict vehicles to specific Discord roles (police, EMS, tow, admin, etc.)
- Automatic ejection of unauthorized players from restricted vehicles
- Support for Discord role mapping to simplify configuration
- Admin override for full access to all vehicles

 

Vehicle Handling Options
- Configurable immediate vehicle deletion for unauthorized access
- Delayed vehicle deletion with customizable timer (default: 25 seconds)
- Smart cancellation of deletion timers when authorized players enter vehicles
- Visual effects when vehicles are deleted (smoke grenade effect)

 

Player Experience Improvements
- Players are moved to the driver's side when ejected from vehicles
- Clear notifications when players are ejected from unauthorized vehicles
- Warning notifications for delayed vehicle deletion
- Success notifications when deletion timers are cancelled

 

Discord Webhook Integration
- Comprehensive webhook logging for all vehicle permission events
- Detailed player information including identifiers (steam, license, discord)
- User-friendly vehicle names in webhook messages
- Configurable webhook events (ejections, deletions, timer cancellations, admin overrides)
- Test command to verify webhook functionality

 

Performance Optimizations
- Configurable check intervals for player and world vehicles
- Debug message throttling to reduce console spam
- Vehicle distance checking to ignore distant vehicles
- Role check caching to reduce API calls

 

Configuration Options
- Separate configuration files for core settings, vehicle lists, and performance options
- Customizable notification messages and types
- Adjustable deletion delay times
- Toggle options for immediate or delayed deletion
- Debug mode for troubleshooting

 

Commands
- /checkvehicle [model] - Check if you can use a specific vehicle
- /myvehicles - List all vehicles you have access to
- /refreshvehicles - Force update your vehicle permissions

 

Future Plans
- UI for in-game vehicle management
- Support for temporary vehicle permissions
- Vehicle class-based permissions
- Enhanced logging and analytics
- Expanded vehicle lookup database

Edited by Nightz Development

What's New in Version V0.2

Released

ND_VehicleWhitelist Changelog
Version 0.2 - Performance & Stability Update
 

 Critical Fixes
- Fixed: Resolved "bad argument #1 to 'for iterator' (table expected, got nil)" error in client.lua line 114
- Fixed: Added proper nil checks and validation for permissions data to prevent script crashes
- Fixed: Removed 78 lines of duplicate webhook code in server.lua (lines 680-758)
- Fixed: Consolidated admin override logging into a single, efficient function

 

Performance Improvements
- Enhanced: Implemented TTL-based caching system for roles (5min) and vehicle models (10min)
- Optimized: Vehicle check intervals - Player checks: 500ms → 1000ms, World checks: 5s → 10s
- Improved: Added automatic cache cleanup every 5 minutes to prevent memory leaks
- Reduced: Discord API calls by ~80% through intelligent caching
- Added: Efficient vehicle name lookup with persistent caching

 

New Feature
- Added: ND_Notify support with proper type mapping and advanced options
- Added: Comprehensive configuration validation system (`config_validator.lua`)
  - Auto-validates configuration on resource start
  - Provides detailed error reporting and warnings
  - Sets safe defaults for missing values
- Added: Advanced caching system with timestamp-based validation
- Added: Performance monitoring and debug information

 

Configuration Changes
- Changed: Default notification system from 'okokNotify' to 'ND_Notify'
- Updated: Performance settings for better server stability
- Added: New config validation with automatic error detection
- Improved: Webhook configuration validation and security warnings

 

Technical Improvements
- Enhanced: Error handling 
- Improved: Code structure
- Added: Proper variables
- Optimized: Memory usage & cache management
- Added: Graceful degradation

 

File Changes
- Modified: `client.lua` 
- Modified: `server.lua` 
- Modified: `config.lua` 
- Modified: `performance_config.lua`
- Modified: `fxmanifest.lua` 
- Added:  `config_validator.lua`


Short Description

Made For ND_DiscordSystem

User Feedback

Recommended Comments

There are no comments to display.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.