Functions

If you choose not to use an item, you can use this export here:

exports['tropic-blackmarket']:usePhone()

Example:

RegisterCommand("call", function()
    exports['tropic-blackmarket']:usePhone()
end, false)

You can also use:

tropic-blackmarket:UsePhone

Example: (qb-radialmenu)

           }, {
                id = 'blackmarket',
                title = 'Black Market',
                icon = 'box',
                type = 'client',
                event = 'tropic-blackmarket:UsePhone',
                shouldClose = true
            }, {

You can also make a new item if wanted, like so:

['testphone'] = {
    label = 'Test Phone',
    weight = 100,
    stack = false,
    close = true,
    description = 'A super cool phone',
    client = {
        export = 'tropic-blackmarket.usePhone'
    }
},

Last updated