Starter Catalog
Tri-Bike, Faggio, Panto and Blista with configurable price and deposit.
coe_rentalsVehicle Rentals with Deposit
A bike, scooter or compact car for new citizens, with the deposit returned on drop-off
coe_corecoe_economycoe_vehicles
coe_rentals
5 exports · 0 commands
Runs without a NUI: nothing is rendered on the client and the resource stays idle until events arrive.
Rental stations around the map for players who do not own a vehicle yet. The player pays the rental plus a deposit at the counter and gets the deposit back when returning the vehicle to the returnZone of any station. One active rental per character; catalog, prices and stations live in config.lua.
Fail-closed charging: with coe_economy down nobody rents for free. The server checks the distance to the counter and the request cooldown, refunds if the vehicle cannot be created and logs any failure to return the deposit.
Tri-Bike, Faggio, Panto and Blista with configurable price and deposit.
Drop the vehicle at any station and the deposit goes back to the account through the economy.
An unavailable economy refuses the rental; a failed spawn refunds the charge.
Counter distance, return zone and cooldown are checked before charging.
Every COE Framework script strictly follows the principle of separation of concerns. Interact with the 3D stack below:
Operates strictly within layers L1–L3 (domain, HAL, and server-authoritative application logic). Visual interactions and management flows are delegated to centralized ecosystem apps (coe_ui / coe_tablet), guaranteeing 0.00 ms idle client overhead in FiveM DX12.
Manage your city without relying on developers. Runtime parameters, auditing, and ACE-protected commands:
IsPlayerAceAllowed(src, "coe.admin")
exports.coe_audit:Record(severity, category, event, context)
Clean Architecture & HAL
Typed contracts to call from other resources. Full types live in types.lua and in the docs reference.
exports['coe_rentals']:GetActiveRental(characterId)
→ ActiveRentalInfo|nil
Returns the active vehicle rental record for a character or `nil`.
| Parameter | Type |
|---|---|
characterId | string |
local result = exports['coe_rentals']:GetActiveRental(characterId)exports['coe_rentals']:ListStations()
→ RentalStationDef[]
Registered rental stations. Only `AdminResources`/ACE `coe.rentals.admin`.
No parameters.
local result = exports['coe_rentals']:ListStations()exports['coe_rentals']:SaveStation(raw)
→ RentalStationDef|table
Creates or updates a rental station (attendant, pickup points, return zone, models, blip).
| Parameter | Type |
|---|---|
raw | RentalStationDef |
local result = exports['coe_rentals']:SaveStation(raw)exports['coe_rentals']:DeleteStation(stationId)
→ boolean|table
Removes a rental station.
| Parameter | Type |
|---|---|
stationId | string |
local result = exports['coe_rentals']:DeleteStation(stationId)exports['coe_rentals']:Catalog()
→ RentalVehicleDef[]
Rental vehicle catalog (config.lua).
No parameters.
local result = exports['coe_rentals']:Catalog()This module registers no commands: it is driven by exports and events.