qb-core
qb-core copied to clipboard
Handle vehicle spawning and deleting commands on the server
Description
The /car [vehicleModel]
& /dv
commands will now spawn and delete entities using exclusively server-side logic. This improves security and compatibility with the sv_entityLockdown strict
mode.
Checklist
- [x] I have personally loaded this code into an updated qbcore project and checked all of its functionality.
- [x] My code fits the style guidelines.
- [x] My PR fits the contribution guidelines.
The car command is cool but the dv i'd still like the functionality of deleting the closest vehicles too as it does now
@GhzGarage A bit late but that should do the trick. :)
This PR has had 60 days of inactivity & will close within 7 days