mirror of
https://github.com/ND-Framework/ND_Core.git
synced 2026-08-17 05:56:01 +01:00
feat(server/vehicles): remove vehicles from db
This commit is contained in:
@@ -108,6 +108,15 @@ function NDCore.getVehicle(entity)
|
|||||||
DeleteEntity(entity)
|
DeleteEntity(entity)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
-- remvoe vehicle from db.
|
||||||
|
function self.remove(keepEntity)
|
||||||
|
if not keepEntity and DoesEntityExist(entity) then
|
||||||
|
DeleteEntity(entity)
|
||||||
|
end
|
||||||
|
MySQL.query("DELETE FROM nd_vehicles WHERE id = ?", {self.id})
|
||||||
|
end
|
||||||
|
|
||||||
--- set vehicle properties
|
--- set vehicle properties
|
||||||
---@param props table
|
---@param props table
|
||||||
function self.setProperties(props)
|
function self.setProperties(props)
|
||||||
|
|||||||
Reference in New Issue
Block a user