πŸ‘€Custom target system

To adapt the script to another target system, here you can find the functions that need to be adapted

CLIENT

if Config.TargetSystem == "custom" then 
    TargetSystem = {
        -- @param entity: number
        -- @param options: { name: string, icon: string, label: string, distance: number, onSelect: () => void }[]
        addLocalEntity = function(entity, options)
        end,

        -- @param entity: number
        -- @param optionName: string
        removeLocalEntity = function(entity, optionName)
        end,

        -- @param data: { name: string, coords: vector3, size, vector: 3, rotation: number, debug: boolean, options: { name: string, icon: string, label: string, onSelect: () => void }[] }
        -- @return id: number | undefined
        
        addBoxZone = function(data)
        end,

        -- @param id?: number
        -- @param coords: vector3 
        removeBoxZone = function(id, coords)
        end
    }
end

Last updated