Description & Usage
A command-based vehicle repair system that allows players to repair their current vehicle using /repair. The command checks if player is in a vehicle and has required permissions before executing the repair. Works with QBCore framework and includes proper client-server communication.
Source Code (2 Files)
| 1 | QBCore.Commands.Add('repair', 'Repair your vehicle', {}, false, function(source, args) |
| 2 | local src = source |
| 3 | TriggerClientEvent('qb-repair:client:repairVehicle', src) |
| 4 | end, 'admin') |
0 likes ·Sign in to like
Community Discussion (0)
Sign in to join the discussion and leave a comment.
Snippet Info
Languagelua
Lines21
Chars816
Likes0