@@ -7,7 +7,7 @@ import { Callout } from '@components/Callout'
7
7
8
8
# Client
9
9
<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.
11
11
</Callout >
12
12
13
13
<Callout type = " error" >
@@ -18,24 +18,24 @@ You can add your own dispatch system to the bridge by editing the `disptach/serv
18
18
### Disptach Data
19
19
``` lua
20
20
{
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.
25
25
coords = {x = 0.0 , y = 0.0 , z = 0.0 }, -- The disptach location.
26
26
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.
29
29
},
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.
32
32
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.
39
39
}
40
40
}
41
41
```
@@ -48,4 +48,28 @@ exports.it_bridge:SendDispatch(disptachData)
48
48
49
49
- disptachData: ` table ` : The disptach data.
50
50
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