-
Notifications
You must be signed in to change notification settings - Fork 2
/
example.lua
39 lines (37 loc) · 1.27 KB
/
example.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
-- This is just an example on the server side, you could make this client side by replacing TriggerClientEvent('licenses:showToClosest', source, data) with ShowToClosest(data)
RegisterCommand("showid", function(source, args, rawCommand)
if (source > 0) then
local data = {
FirstName = "Robert",
LastName = "Williams",
DOB = "1997/10/02",
Issue = "02/27/22",
CitizenID = "26",
Sex = "Male",
Hair = "brown",
Height = "180cm",
Eyes = "blue",
Image = "images/placeholder.png",
Format = "id"
}
TriggerClientEvent('licenses:showToClosest', source, data)
end
end, false)
RegisterCommand("showlicense", function(source, args, rawCommand)
if (source > 0) then
local data = {
FirstName = "William",
LastName = "Dazzler",
DOB = "1991/02/11",
Issue = "03/10/22",
CitizenID = "2001",
Sex = "Male",
Hair = "brown",
Height = "180cm",
Eyes = "blue",
Image = "images/placeholder.png",
Format = "driver_license"
}
TriggerClientEvent('licenses:showToClosest', source, data)
end
end, false)