Fork of : | https://github.com/SolosV1/solos-rentals
- Customize vehicle and pricing options
- Add as many locations as you'd like (Each location can have different vehicles)
- Players receive rental papers with meta data displaying renter's name, vehicle, and licence plate
- NEW: Discord webhook integration for rental logs
- NEW: Advanced anti-cheat system with token verification
- NEW: Distance verification (25-meter radius)
- NEW: Automatic alerts for suspicious activities
- NEW: Token-based transaction security system
Requires: ox_lib
Optional ox_inventory | qs-inventory | qb-inventory (Not standalon)
Frameworks: QB | ESX
Targets: qb-target | ox_target
-
add
pc-rentalsto your resources folder | Make sure folder is UNZIPPED! -
ensure pc-rentalsin server.cfg if necessary -
Add
Rental Papersitem to inventory:
Add rentalpapers.png to /ox_inventory/web/images/ or /qs-inventory/html/images/
-
Restart server
-
Enjoy!
Configure Discord logs in config.lua:
config.webhook = {
enabled = true, -- Enable/disable Discord logs
url = 'YOUR_WEBHOOK_URL', -- Your Discord webhook URL
botName = 'Rentals - Logs', -- Bot name in Discord
botAvatar = 'AVATAR_URL', -- Bot avatar URL
color = 3447003, -- Embed color (decimal)
role = '<@&ROLE_ID>', -- Role to ping on alerts (format: <@&ROLE_ID>)
}- Normal Logs (Blue embed): Player name, ID, vehicle model, plate, amount, location
- Security Alerts (Red embed with role ping):
- Unauthorized vehicle detection
- Distance validation (player must be within 25 meters of rental location)
- Invalid token detection
- Invalid vehicle selection attempts
- Go to Server Settings → Integrations → Webhooks
- Create a new webhook
- Copy the webhook URL
- Paste it in
config.webhook.url
- Enable Developer Mode in Discord (User Settings → Advanced)
- Right-click on the role → Copy ID
- Format it as
<@&ROLE_ID>in config
- Unique token generation for each transaction
- Token expires after 5 minutes (prevents replay attacks)
- Single-use tokens (consumed after one use)
- Player-bound tokens (cannot be transferred between players)
- Server-side validation (impossible to bypass)
- ✅ Server-side price validation (prevents price manipulation)
- ✅ Vehicle authorization check (only configured vehicles can be rented)
- ✅ Distance verification (25-meter radius from rental location)
- ✅ Token verification system (prevents unauthorized spawning)
- ✅ Invalid vehicle selection detection
- ✅ Real-time Discord alerts for suspicious activities
- ✅ Comprehensive logging system
- Player selects vehicle → Server validates vehicle exists in config
- Server deducts money using config price only (client price ignored)
- Server generates unique token with transaction data
- Client receives token and spawns vehicle
- Server validates token before confirming rental
- Token is consumed (cannot be reused)
Result: Complete protection against cheaters trying to manipulate prices, spawn unauthorized vehicles, or bypass payment systems.


