Common Problems & Questions

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. 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.

In-game photos not working

Refer to page Setup

Editing map image

If you are using Liberty City or a custom map, you need to convert your map image into tiles.

You can use this tool for converting image into tiles: https://hub.docker.com/r/niene/gdal2tiles-leafletarrow-up-right

After converting, replace the tiles inside tk_dispatch\web\build\tiles\atlas. Make sure the folder structure matches the original tiles folder.

Adding custom call sound

You can edit the PlayCallSound function in client/main_editable.lua. By default, the script uses GTA's built-in sounds.

If you want to use a custom .mp3 file, you will need to modify the code or use a third-party sound resource. For example, you can use something like InteractSound or another audio script that provides exports for playing custom sounds.

Last updated