Skip to content

Commit

Permalink
Update main.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
DevX32 authored Oct 17, 2023
1 parent a531e12 commit b7f470d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ RegisterNetEvent('qb-admin:server:SaveCar', function(mods, vehicle, plate)
local result = MySQL.Sync.fetchAll('SELECT plate FROM player_vehicles WHERE plate = ?', { plate })

if result[1] ~= nil then TriggerClientEvent('ox_lib:notify', src, Lang:t("error.failed_vehicle_owner"), 'error', 3000) return end
if not (exports.qbx_core:HasPermission(source, Config.Events['savecar'])) then NoPerms(source) return end
if not (exports.qbx_core:HasPermission(source, Config.Events['savecar'])) or HasPermission(source, Config.Events['savecar']) then NoPerms(source) return end

TriggerEvent('qb-log:server:CreateLog', 'admin', 'Admin menu', 'pink', string.format("**%s** (CitizenID: %s | ID: %s) - Saved a car to his garage **%s**",
GetPlayerName(src), Player.PlayerData.citizenid, src, vehicle.model))
Expand Down

0 comments on commit b7f470d

Please sign in to comment.