Price
UnknownA script by wesleyadryel
Price
UnknownWdev Vehicle State
Designed to provide a comprehensive framework for handling and preserving vehicle states in its server environment, this script caters to servers using QB-Core or easily adaptable to frameworks. While it doesn’t track bodily damage, it records and saves damages incurred to windows, ignition, body, fuel status, and doors.
–
–
Guide
- It is essential to adapt the
Config.getOwnerVehiclePlatefunction to retrieve the owner of the vehicle. This server-side function takes the entity ID and the plate as parameters. Incorrect configuration of this function will result in the script’s features not functioning correctly.
The script operates through exports. Integrate it into your scripts using the provided exports.
There are various server-side and client-side exports, but two main exports exist.
vehicle: NUMBER (Vehicle entity id)Export:
exports['wdev_vehicle_state']:applyDamagedVehicle(vehicle)
vehicle: NUMBER (Vehicle entity id)Export:
exports['wdev_vehicle_state']:updateVehicleState(vehicle)
| Code is accessible | No |
| Subscription-based | No |
| Lines (approximately) | 600+ |
| Requirements | Standalone |
| Support | Yes |
See what others are saying about this script.
Share your experience and help others.