#ox_inventory and qbx_police

1 messages · Page 1 of 1 (latest)

drifting fulcrum
#

when i open police armoury it closes right away and sends a message in the top right corner heres the video

#
        name = 'Police Armoury',
        groups = shared.police,
        blip = {
            id = 110, colour = 84, scale = 0.8
        }, inventory = {
            { name = 'ammo-9', price = 0 },
            { name = 'ammo-rifle', price = 0 },
            { name = 'WEAPON_FLASHLIGHT', price = 0 },
            { name = 'WEAPON_NIGHTSTICK', price = 0 },
            { name = 'WEAPON_PISTOL', price = 0, metadata = { registered = true, serial = 'POL' }, license = 'weapon' },
            { name = 'WEAPON_CARBINERIFLE', price = 0, metadata = { registered = true, serial = 'POL' }, license = 'weapon', grade = 3 },
            { name = 'WEAPON_STUNGUN', price = 0, metadata = { registered = true, serial = 'POL'} },
            { name = 'handcuffs',           price = 0 },
            { name = 'empty_evidence_bag',  price = 0 },
            { name = 'police_stormram',     price = 0 },
            { name = 'armor',               price = 0 },
            { name = 'radio',               price = 0 },
            { name = 'heavyarmor',          price = 0 },
            { name = "taser_cartridge",    price = 0 },
            { name = "weapon_flare",       price = 0 },
            { name = "advancedrepairkit",  price = 0 },
            { name = "bodycam",            price = 0 },
            { name = "repairkit",          price = 0 },
            { name = "dashcam",            price = 0 },
            { name = "grappler",            price = 0 },
            { name = "dslrcamera",         price = 0 }
        }, locations = {
            vec3(-609.02, -411.66, 35.17)
        }, targets = {
            {
                ped = `mp_m_shopkeep_01`,
                scenario = 'WORLD_HUMAN_AA_COFFEE',
                loc = vec3(-609.02, -411.66, 33.17),
                heading = 327.94,
            }
        }
    },```
#

its fully updated

desert snow
#

Is that inside of ox_inventory/data/shops?

#

i use that also, and it works for me. If anything, i could send my one over and you can try that one. Just have to change where the coordinates would be located.

drifting fulcrum
#

you have ped for the armoury

#

and thank you very much

#

trying it now

#

@desert snow nothing showed up

#

it works but will it work with a ped

#

@desert snow thank you

desert snow
#

I dont know how to make it work with ped just target

#

but you can put a ped there yourself not sure how. You can just put it up against a wall that makes sense. Like a gun rack or something?

drifting fulcrum
drifting fulcrum
#

}, targets = {
{
ped = mp_m_shopkeep_01,
scenario = 'WORLD_HUMAN_AA_COFFEE',
loc = vec3(-608.9, -411.89, 34.17),
length = 1.5,
width = 1.5,
heading = 287.31,
minZ = 29.5,
maxZ = 29.9,
distance = 1.5
},

velvet jetty
#

your ped is in the ground which might be too far from it to interact, fix the peds location and increase the distance a little bit

desert snow
#

Not to sure. But glad I could help.

drifting fulcrum
desert snow
#

If you could tell me how. I would love that.

desert snow
#

oh here you go. Thats just my whole shops.lua

velvet jetty
#

this is how you do peds

        name = '24/7 Market',
        blip = {
            id = 59,
            colour = 69,
            scale = 0.7
        },
        inventory = {
            { name = 'sandwich', price = 40 },
            { name = 'tosti', price = 25 },
            { name = 'twerks_candy', price = 10 },
            { name = 'snikkel_candy', price = 10 },
            { name = 'kurkakola', price = 15 },
            { name = 'water', price = 12 },
            { name = 'lighter', price = 30 },
            { name = 'bandage', price = 50 },
            { name = 'spicynuts', price = 15 },
            { name = 'hairspray', price = 35 }

        },
    targets = {
        { -- Clinton Avenue
            ped = `mp_m_shopkeep_01`,
            scenario = 'WORLD_HUMAN_AA_COFFEE',
            loc = vec3(372.94, 326.33, 102.57),
            heading = 256.31,
        },
        { -- Palomino Freeway
            ped = `mp_m_shopkeep_01`,
            scenario = 'WORLD_HUMAN_AA_COFFEE',
            loc = vec3(2557.3, 381.23, 107.62),
            heading = 357.65,
        },
        { -- Inseno Road
            ped = `mp_m_shopkeep_01`,
            scenario = 'WORLD_HUMAN_AA_COFFEE',
            loc = vec3(-3039.57, 584.64, 6.91),
            heading = 15.4,
        },
        { --Barbareno Road - Great Ocean Highway
            ped = `mp_m_shopkeep_01`,
            scenario = 'WORLD_HUMAN_AA_COFFEE',
            loc = vec3(-3242.32, 1000.42, 11.83),
            heading = 349.85,
        },
        { -- Route 68
            ped = `mp_m_shopkeep_01`,
            scenario = 'WORLD_HUMAN_AA_COFFEE',
            loc = vec3(548.71, 2671.29, 41.16),
            heading = 93.9,
        },
        { -- Alhambra Drive Sandy
            ped = `mp_m_shopkeep_01`,
            scenario = 'WORLD_HUMAN_AA_COFFEE',
            loc = vec3(1960.46, 3740.19, 31.34),
            heading = 298.59,
        },
        { -- Senora Freeway
            ped = `mp_m_shopkeep_01`,
            scenario = 'WORLD_HUMAN_AA_COFFEE',
            loc = vec3(2678.21, 3279.7, 54.24),
            heading = 329.45,
        },
        { --Great Ocean Highway
            ped = `mp_m_shopkeep_01`,
            scenario = 'WORLD_HUMAN_AA_COFFEE',
            loc = vec3(1728.26, 6415.07, 34.04),
            heading = 244.26,
        },
        { -- Innocence Blvd
            ped = `mp_m_shopkeep_01`,
            scenario = 'WORLD_HUMAN_AA_COFFEE',
            loc = vec3(24.91, -1347.31, 28.5),
            heading = 270.53,
        },
        { -- Ginger Street
            ped = `mp_m_shopkeep_01`,
            scenario = 'WORLD_HUMAN_AA_COFFEE',
            loc = vec3(-706.13, -914.77, 18.22),
            heading = 93.41,
        },
        { -- Mirror Park Blvd
            ped = `mp_m_shopkeep_01`,
            scenario = 'WORLD_HUMAN_AA_COFFEE',
            loc = vec3(1164.87, -323.8, 68.21),
            heading = 100.6,
        },
        -- { --ottos
        --     ped = `mp_m_shopkeep_01`,
        --     scenario = 'WORLD_HUMAN_AA_COFFEE',
        --     loc = vec3(812.87, -782.61, 26.17),
        --     heading = 264.26,
        -- },
        { --Grove Street
            ped = `mp_m_shopkeep_01`,
            scenario = 'WORLD_HUMAN_AA_COFFEE',
            loc = vec3(-47.54, -1758.83, 28.42),
            heading = 46.8,
        },
    },
},```
drifting fulcrum
#

thank you @velvet jetty @desert snow