From 1f078e816ffe298cd971a09809aa696f2af7acb6 Mon Sep 17 00:00:00 2001 From: Bubble <49866759+BubbleDK@users.noreply.github.com> Date: Wed, 21 Aug 2024 20:18:13 +0200 Subject: [PATCH] Update README.md --- README.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/README.md b/README.md index afb34ff..ed665fb 100644 --- a/README.md +++ b/README.md @@ -51,3 +51,26 @@ Without the creation of the following resources, this MDT would not have seen th - A lot of the UI needs to be refactored, more modular and simply be optimized. - The drivers license points system needs to be revamped, as of right now it does not function properly. - Probably a lot more which i have forgotten about, but i guess it will get mentioned if people end up using this MDT. + +# Dispatch usage example +## Custom alert example +```lua +exports['bub-mdt']:CustomAlert({ + coords = vec3(0, 0, 0), + info = { + { + label = framework.getPlayerGender(), + icon = 'gender-bigender', + }, + }, + code = '10-90', + offense = 'A cool offense', + blip = 310, +}) +``` +## Pre configured alert examples +```lua +exports['bub-mdt']:Shooting() +exports['bub-mdt']:VehicleShooting() +exports['bub-mdt']:OfficerDown() +```