Adding new calls

Adding calls from third-party resources

In many scripts, you will find a function for the police alert inside a config or other editable file. The function name is usually something like Dispatch, AlertPolice, or similar.

Inside that function, you just need to add the addCall export and after that it should look something like this:

function AlertPolice()
    exports.tk_dispatch:addCall({
        title = 'House Robbery',
        coords = GetEntityCoords(PlayerPedId()),
        showLocation = true,
        showGender = true,
        playSound = true,
        blip = {
            color = 3,
            sprite = 357,
            scale = 1.0,
        },
        jobs = {'police'}
    })
end

You can find more examples on the exports page and at the bottom of that page, there are also ready-to-copy examples that you can edit to fit your needs.

The exports page also explains all available arguments you can use inside addCall, such as title, jobs, blip settings, and other options.

Last updated