Config File Descriptions
Config = {}
local currentlocale = "en" -- tr | en
Config.CameraRange = 7.0 -- freecam max distance
Config.Core = "qb" -- esx | qb | qbox
Config.Command = "photocam" -- command name
local Locales = {
tr = {
["notaccess"] = "Şuanda kullanamazsın!",
["animposs"] = "Mevcut konumunu onaylamadan ana menüye geçiş yapamazsın!",
},
en = {
["notaccess"] = "You cannot use it right now!",
["animposs"] = "You cannot go to the main menu without confirming your current location!",
}
}
Config.Locales = Locales[currentlocale] or Locales["tr"]
Config.Effects = { -- filters https://wiki.rage.mp/wiki/Timecycle_Modifiers
"DeathFailMPDark",
"MP_Bull_tost",
"DrugsMichaelAliensFight",
"HeistCelebPass",
"FocusOut"
}
function checkEvents() -- Functions that are checked before opening /photocam
if QBCore.Functions.GetPlayerData().metadata["inlaststand"] or QBCore.Functions.GetPlayerData().metadata["isdead"] then Notify(Config.Locales["notaccess"], "error") return end
end
function openEvents() -- Events/functions to be triggered when Freecam is opened (such as hiding the HUD).
end
function closeEvents() -- Events/functions to be triggered when Freecam is closed (such as showing the HUD again)
end
function Notify(message, type)
if Config.Core == "qb" then
QBCore.Functions.Notify(message, type)
elseif Config.Core == "qbox" then
exports.qbx_core:Notify(message, type)
elseif Config.Core == "esx" then
ESX.ShowNotification(message, type, 3000)
end
end
Last updated