@@ -7,7 +7,7 @@ import { Callout } from '@components/Callout'
77
88# Client
99<Callout type = " warning" >
10- These exports can only be used on the server -side. Make sure to use them in your server -side script files.
10+ These exports can only be used on the client -side. Make sure to use them in your client -side script files.
1111</Callout >
1212
1313<Callout type = " error" >
@@ -18,24 +18,24 @@ You can add your own dispatch system to the bridge by editing the `disptach/serv
1818### Disptach Data
1919``` lua
2020{
21- job = ' police ' , -- The job that should receive the disptach.
22- jobs = {' police ' , ' ambulance ' }, -- The jobs that should receive the disptach.
23- title = ' Robbery ' , -- The disptach title.
24- message = ' A robbery has been reported at the bank. ' , -- The disptach description.
21+ job = ' string ' , -- The job that should receive the disptach.
22+ jobs = {}, -- List of jobs that should receive the disptach.
23+ title = ' string ' , -- The disptach title.
24+ message = ' string ' , -- The disptach description.
2525 coords = {x = 0.0 , y = 0.0 , z = 0.0 }, -- The disptach location.
2626 callCode = {
27- code = ' 10-31 ' , -- The disptach code.
28- snippet = ' 10-31 ' -- The disptach priority.
27+ code = ' string ' , -- The disptach code.
28+ snippet = ' string ' -- The disptach priority.
2929 },
30- flashes = true , -- If the disptach should flash on the map.
31- image = ' https://i.imgur.com/0J2QX1E.png ' , -- The disptach image.
30+ flashes = boolean , -- If the disptach should flash on the map.
31+ image = ' string ' , -- The disptach image.
3232 blip = {
33- sprite = 1 , -- The disptach blip sprite.
34- colour = 1 , -- The disptach blip color.
35- scale = 1.0 , -- The disptach blip scale.
36- text = ' Robbery ' , -- The disptach blip label.
37- time = 30000 -- The disptach blip time.
38- flashes = true -- If the disptach blip should flash.
33+ sprite = number , -- The disptach blip sprite.
34+ colour = number , -- The disptach blip color.
35+ scale = number , -- The disptach blip scale.
36+ text = ' string ' , -- The disptach blip label.
37+ time = number -- The disptach blip time.
38+ flashes = boolean -- If the disptach blip should flash.
3939 }
4040}
4141```
@@ -48,4 +48,28 @@ exports.it_bridge:SendDispatch(disptachData)
4848
4949- disptachData: ` table ` : The disptach data.
5050
51- Sends a disptach with the specified data.
51+ Sends a disptach with the specified data.
52+
53+ ### Example
54+ ``` lua
55+ exports .it_bridge :SendDispatch ({
56+ job = ' police' ,
57+ title = ' Robbery' ,
58+ message = ' A robbery has been reported at the bank.' ,
59+ coords = {x = 0.0 , y = 0.0 , z = 0.0 },
60+ callCode = {
61+ code = ' 10-31' ,
62+ snippet = ' 10-31'
63+ },
64+ flashes = true ,
65+ image = ' https://i.imgur.com/0J2QX1E.png' ,
66+ blip = {
67+ sprite = 1 ,
68+ colour = 1 ,
69+ scale = 1.0 ,
70+ text = ' Robbery' ,
71+ time = 30000 ,
72+ flashes = true
73+ }
74+ })
75+ ```
0 commit comments