Kartik Scripts

Disable Alerts

Disables or enables incoming dispatch alerts for the client ped (e.g. used when entering/exiting a no-dispatch zone).

Export Syntax

exports['kartik-mdt']:disableAlerts(disable)

Parameters

ParameterTypeRequiredDescription
disablebooleanYestrue to block incoming dispatch calls, false to receive them.

Return Value

  • Returns void

Example Usage

-- Block incoming calls (e.g. inside a specific interior zone)
exports['kartik-mdt']:disableAlerts(true)

-- Re-enable incoming calls
exports['kartik-mdt']:disableAlerts(false)

On this page