Configuration

Config = {}

Config.DefaultLanguage = 'en' -- en, tr

Config.Command = 'poza' -- Command to activate position mode

Config.maxDistance = 5 -- Maximum distance allowed from original position (prevents moving too far away)

Config.SaveLastLocation = true -- Whether to save and remember the original position to return to it later

Config.Collision = true -- Enable or disable collision detection with walls and objects

Config.CollisionRadius = 0.1 -- The radius used for collision detection (higher value = more sensitive collision)

-- Ground auto-alignment configuration
Config.AutoAlign = {
	enable = true, -- Whether to automatically align to the ground when near it
	offset = 0.7, -- Distance threshold for ground alignment (how close to ground before aligning)
}

-- Notification handler function - automatically detects and uses framework notifications
Config.Notification = function(message, type)
    if GetResourceState("qb-core") == "started" then
        TriggerEvent("QBCore:Notify", message, type)
    elseif GetResourceState("es_extended") == "started" then
        TriggerEvent("esx:showNotification", message)
    end
end

Last updated