Skip to content

Commit

Permalink
Update main.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
Pixel-Nomad authored Apr 9, 2024
1 parent 487fd51 commit d1cee53
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions server/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,12 @@ function RemoveKeys(id, plate)
end
exports('RemoveKeys', RemoveKeys)

function RemoveKeysFromEveryone(plate)
if VehicleList[plate] then
VehicleList[plate] = nil
end
end exports('RemoveKeysFromEveryone', RemoveKeysFromEveryone)

function HasKeys(id, plate)
local citizenid = QBCore.Functions.GetPlayer(id).PlayerData.citizenid
if VehicleList[plate] and VehicleList[plate][citizenid] then
Expand Down

0 comments on commit d1cee53

Please sign in to comment.