-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclient.lua
53 lines (49 loc) · 2.18 KB
/
client.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
local QBCore = exports['qb-core']:GetCoreObject()
RegisterNetEvent('lspay:client:usea', function() -- Aカードを使用
TriggerEvent('animations:client:EmoteCommandStart', {"selfie"})
QBCore.Functions.Progressbar('usea', 'プリペイドのコードを入力中...', 5000, false, true, {
disableMovement = true,
disableCarMovement = true,
disableMouse = false,
disableCombat = true,
}, {}, {}, {}, function()
TriggerServerEvent('udon:server:usea')
TriggerEvent('animations:client:EmoteCommandStart', {"c"})
end)
end)
RegisterNetEvent('lspay:client:useb', function() -- Bカードを使用
TriggerEvent('animations:client:EmoteCommandStart', {"selfie"})
QBCore.Functions.Progressbar('useb', 'プリペイドのコードを入力中...', 5000, false, true, {
disableMovement = true,
disableCarMovement = true,
disableMouse = false,
disableCombat = true,
}, {}, {}, {}, function()
TriggerServerEvent('udon:server:useb')
TriggerEvent('animations:client:EmoteCommandStart', {"c"})
end)
end)
RegisterNetEvent('lspay:client:usec', function() -- Cカードを使用
TriggerEvent('animations:client:EmoteCommandStart', {"selfie"})
QBCore.Functions.Progressbar('usec', 'プリペイドのコードを入力中...', 5000, false, true, {
disableMovement = true,
disableCarMovement = true,
disableMouse = false,
disableCombat = true,
}, {}, {}, {}, function()
TriggerServerEvent('udon:server:usec')
TriggerEvent('animations:client:EmoteCommandStart', {"c"})
end)
end)
RegisterNetEvent('lspay:client:used', function() -- Dカードを使用
TriggerEvent('animations:client:EmoteCommandStart', {"selfie"})
QBCore.Functions.Progressbar('used', 'プリペイドのコードを入力中...', 5000, false, true, {
disableMovement = true,
disableCarMovement = true,
disableMouse = false,
disableCombat = true,
}, {}, {}, {}, function()
TriggerServerEvent('udon:server:used')
TriggerEvent('animations:client:EmoteCommandStart', {"c"})
end)
end)