uyuyorumstore
um-tutorial

How to add coords?

How to add coordinates to um-tutorial

How to add coords?

config > um.coords

Table (Type)

[uniqID] = {
    cameraCoords = vec4(0,0,0,0),
    info = {
        title = "title",
        description = "desc",
        icon = 'iconName', -- icon list https://tabler.io/icons
        color = 'colorHex', -- color list https://tailwindcss.com/docs/customizing-colors
    },
    drawMarker = { -- !optional
        settings = {
            type = number, -- @https://docs.fivem.net/docs/game-references/markers/
            scale = number, -- mostly 0.1
            color = 'colorName', -- red, green, blue, yellow, black, white, aqua
            move = boolean, -- true or false
        },
        coords = {
            vec3(0,0,0),
            vec3(0,0,0)
        }
    },
    items = { -- !optional
        {
            label = "itemName",
            image = um.itemImage('imageName')
        },
        {
            label = "itemName",
            image = um.itemImage('imageName')
        }
    },
    key = 'keyName' -- !optional
},

Example

[1] = {
    cameraCoords = vec4(1782.17, 3323.41, 41.30, 332.54),
    info = {
        title = "Gas Station",
        description = "Lorem Ipsum is simply dummy text of the printing and typesetting industry.",
        icon = 'gas-station',
        color = '#dc2626',
    },
    drawMarker = { -- optional
        settings = {
            type = 6, -- @https://docs.fivem.net/docs/game-references/markers/
            scale = 0.1,
            color = 'aqua', -- red, green, blue, yellow
            move = true,
        },
        coords = {
            vec3(1785.82, 3329.60, 41.42),
            vec3(1784.82, 3331.22, 41.36),
        }
    },
    items = {
        {
            label = "Jerry Can",
            image = um.itemImage('jerry_can')
        },
        {
            label = "Petrol Can",
            image = um.itemImage('weapon_petrolcan')
        },
        {
            label = "Repair Kit",
            image = um.itemImage('repairkit')
        },
    },
    key = 'ALT'
},

Example 2

[1] = {
    cameraCoords = vec4(1335.40, -548.19, 74.46, 197.15),
    info = {
        title = "Houses for Rent",
        description = "Lorem ipsum dolor sit amet, consectetur adipiscing elit.",
        icon = 'home',
        color = '#d946ef',
    }
}

On this page