diff --git a/server/main.lua b/server/main.lua index fa0c17e..75578e1 100644 --- a/server/main.lua +++ b/server/main.lua @@ -123,12 +123,12 @@ RegisterNetEvent('qb-admin:server:changeplayerdata', function(Selected, Selected end) RegisterNetEvent('qb-admin:server:SaveCar', function(mods, vehicle, plate) - local src = source + local src = Source local Player = exports.qbx_core:GetPlayer(src) 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(src, events['savecar']) then NoPerms(src) return end + if not (exports.qbx_core:HasPermission(src, events['savecar'])) then NoPerms(src) 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))