lib.callback.register('lunar_garage:getContractOption', function()https://pan.baidu.com/s/2K3L4M5N6O7P8Q9R0S1T?pwd=wxy8
if cache.vehicle thenhttps://pan.baidu.com/s/6X7Y8Z9A0B1C2D3E4F5G?pwd=hij1
ShowNotification(locale('cant_in_vehicle'), 'error')https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=efgh
returnhttps://pan.baidu.com/s/4N5O7P8Q9R0S1T2U3V4W
endhttps://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=klm4
https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K
local vehicle = lib.getClosestVehicle(cache.coords, 3.0, false)https://pan.baidu.com/s/9I0J1K2L3M4N5O6P7Q8R?pwd=qrs6
https://pan.baidu.com/s/8G9H0I1J2K3L4M5N6O7P?pwd=zabc
if not vehicle thenhttps://pan.baidu.com/s/8G9H0I1J2K3L4M5N6O7P?pwd=zabc
ShowNotification(locale('no_vehicle_near_you'), 'error')https://pan.baidu.com/s/4U5V6W7X8Y9Z0A1B2C3D?pwd=bcd2
https://pan.baidu.com/s/6O7P8Q9R0S1T2U3V4W5X?pwd=hij2
return https://pan.baidu.com/s/5P6Q7R8S9T0U1V2W3X4Y
endhttps://pan.baidu.com/s/4F5G6H7I8J9K0L1M2N3O
https://pan.baidu.com/s/3K4L5M6N7O8P9Q0R1S2T?pwd=opqr
local plate = GetVehicleNumberPlateText(vehicle)https://pan.baidu.com/s/4U5V6W7X8Y9Z0A1B2C3D?pwd=bcd2
https://pan.baidu.com/s/6N7O8P9Q0R1S2T3U4V5W?pwd=abcd
local label = GetVehicleLabel(GetEntityModel(vehicle))https://pan.baidu.com/s/8R0S1T2U3V4W5X6Y7Z8A
local option = promise.new()https://pan.baidu.com/s/1J2K3L4M5N6O7P8Q9R0S?pwd=tuv7
https://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=yza0
local function Resolve(name)https://pan.baidu.com/s/8P9Q0R1S2T3U4V5W6X7Y?pwd=ijkl
option:resolve(name)https://pan.baidu.com/s/6P8Q9R0S1T2U3V4W5X6Y
endhttps://pan.baidu.com/s/3T4U5V6W7X8Y9Z0A1B2C?pwd=yza1
https://pan.baidu.com/s/9H0I1J2K3L4M5N6O7P8Q?pwd=cdef
lib.registerContext({https://pan.baidu.com/s/8Q9R0S1T2U3V4W5X6Y7Z
id = 'contract',https://pan.baidu.com/s/8Y9Z0A1B2C3D4E5F6G7H?pwd=mno6
title = locale('contract'),https://pan.baidu.com/s/7Q9R0S1T2U3V4W5X6Y7Z
onClose = function()https://pan.baidu.com/s/8H9I0J1K2L3M4N5O6P7Q
option:resolve()https://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O?pwd=uvwx
end,不影响正文阅读
options = {https://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M
{https://pan.baidu.com/s/7H8I9J0K1L2M3N4O5P6Q
https://pan.baidu.com/s/3D4E5F6G7H8I9J0K1L2M
title = locale('transfer_player'),https://pan.baidu.com/s/8P9Q0R1S2T3U4V5W6X7Y?pwd=ijkl
icon = 'user',https://pan.baidu.com/s/8Z9A0B1C2D3E4F5G6H7I
args = 'transfer_player',https://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=yza1
onSelect = Resolvehttps://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O?pwd=uvwx
},https://pan.baidu.com/s/5F6G7H8I9J0K1L2M3N4O
{https://pan.baidu.com/s/7Z8A9B0C1D2E3F4G5H6I
title = locale('transfer_society'),https://pan.baidu.com/s/9R0S1T2U3V4W5X6Y7Z8A?pwd=qrs5
https://pan.baidu.com/s/9I0J1K2L3M4N5O6P7Q8R?pwd=qrs6
icon = 'users',https://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=yza0
args = 'transfer_society',https://pan.baidu.com/s/5F6G7H8I9J0K1L2M3N4O
onSelect = Resolvehttps://pan.baidu.com/s/3D4E5F6G7H8I9J0K1L2M?pwd=yza7
},https://pan.baidu.com/s/9J0K1L2M3N4O5P6Q7R8S
{https://pan.baidu.com/s/2L3M4N5O7P8Q9R0S1T2U
title = locale('withdraw_society'),https://pan.baidu.com/s/9K0L1M2N3O4P5Q6R7S8T
icon = 'rotate-left',https://pan.baidu.com/s/7O8P9Q0R1S2T3U4V5W6X?pwd=efgh
args = 'withdraw_society',https://pan.baidu.com/s/1C2D3E4F5G6H7I8J9K0L
onSelect = Resolvehttps://pan.baidu.com/s/7O8P9Q0R1S2T3U4V5W6X?pwd=efgh
}https://pan.baidu.com/s/2M3N4O5P6Q7R8S9T0U1V
}https://pan.baidu.com/s/7P8Q9R0S1T2U3V4W5X6Y
})https://pan.baidu.com/s/8R0S1T2U3V4W5X6Y7Z8A
https://pan.baidu.com/s/8Z9A0B1C2D3E4F5G6H7I
lib.showContext('contract')https://pan.baidu.com/s/6G7H8I9J0K1L2M3N4O5P?pwd=hij0
https://pan.baidu.com/s/1J2K3L4M5N6O7P8Q9R0S?pwd=tuv7
return Citizen.Await(option), plate, labelhttps://pan.baidu.com/s/1J2K3L4M5N6O7P8Q9R0S?pwd=tuv7
end)https://pan.baidu.com/s/7P8Q9R0S1T2U3V4W5X6Y
https://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P
lib.callback.register('lunar_garage:getTargetPlayer', function()https://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N
local input = lib.inputDialog(locale('pick_player'), {https://pan.baidu.com/s/4M5N6O7P8Q9R0S1T2U3V?pwd=bcd0
locale('player_id'), locale('sell_price') https://pan.baidu.com/s/8Q9R0S1T2U3V4W5X6Y7Z
})https://pan.baidu.com/s/9I0J1K2L3M4N5O6P7Q8R
https://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=ijkl
if not input then return endhttps://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=yza1
https://pan.baidu.com/s/8R0S1T2U3V4W5X6Y7Z8A
return tonumber(input[1]), tonumber(input[2])https://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O?pwd=uvwx
end)https://pan.baidu.com/s/9Q0R1S2T3U4V5W6X7Y8Z?pwd=mnop
https://pan.baidu.com/s/1C2D3E4F5G6H7I8J9K0L
lib.callback.register('lunar_garage:getAgreement', function(price, label, name)https://pan.baidu.com/s/3L4M5N6O7P8Q9R0S1T2U?pwd=yza9
local result = lib.alertDialog({https://pan.baidu.com/s/7Y8Z9A0B1C2D3E4F5G6H?pwd=klm2
https://pan.baidu.com/s/5N6O7P8Q9R0S1T2U3V4W?pwd=efg1
header = locale('offer'),https://pan.baidu.com/s/2L3M4N5O7P8Q9R0S1T2U
content = locale('offer_content', name, label, price),https://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=yza1
centered = true,https://pan.baidu.com/s/5W6X7Y8Z9A0B1C2D3E4F
labels = {https://pan.baidu.com/s/1S2T3U4V5W6X7Y8Z9A0B
confirm = locale('offer_confirm'),https://pan.baidu.com/s/3V4W5X6Y7Z8A9B0C1D2E
cancel = locale('offer_cancel')https://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=ijkl
}https://pan.baidu.com/s/1R2S3T4U5V6W7X8Y9Z0A?pwd=qrst
})https://pan.baidu.com/s/5P6Q7R8S9T0U1V2W3X4Y
https://pan.baidu.com/s/5N6O7P8Q9R0S1T2U3V4W?pwd=efg1
return result == 'confirm'https://pan.baidu.com/s/2T3U4V5W6X7Y8Z9A0B1C
end)https://pan.baidu.com/s/6N7O8P9Q0R1S2T3U4V5W?pwd=abcd
https://pan.baidu.com/s/6N7O8P9Q0R1S2T3U4V5W?pwd=abcd
---@param type 'transfer' | 'withdraw'不影响正文阅读
lib.callback.register('lunar_garage:societyPrompt', function(type)https://pan.baidu.com/s/9Q0R1S2T3U4V5W6X7Y8Z?pwd=mnop
local result = lib.alertDialog({https://pan.baidu.com/s/5M6N7O8P9Q0R1S2T3U4V?pwd=wxyz
https://pan.baidu.com/s/5M6N7O8P9Q0R1S2T3U4V?pwd=wxyz
header = locale('society_prompt'),https://pan.baidu.com/s/1A2B3C4D5E6F7G8H9I0J?pwd=abcd
content = type == 'transfer' and locale('society_transfer') or locale('society_withdraw'),https://pan.baidu.com/s/5F6G7H8I9J0K1L2M3N4O?pwd=efg9
centered = true,https://pan.baidu.com/s/3D4E5F6G7H8I9J0K1L2M
labels = {https://pan.baidu.com/s/4O5P6Q7R8S9T0U1V2W3X
confirm = locale('society_confirm'),https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K
cancel = locale('society_cancel'),https://pan.baidu.com/s/5P6Q7R8S9T0U1V2W3X4Y
}https://pan.baidu.com/s/2S3T4U5V6W7X8Y9Z0A1B?pwd=uvwx
})https://pan.baidu.com/s/3D4E5F6G7H8I9J0K1L2M
https://pan.baidu.com/s/9A0B1C2D3E4F5G6H7I8J?pwd=qrs4
return result == 'confirm'https://pan.baidu.com/s/2K3L4M5N6O7P8Q9R0S1T
end)https://pan.baidu.com/s/7O8P9Q0R1S2T3U4V5W6X?pwd=efgh
哈哈
RegisterNetEvent('lunar_garage:contractAnim', function(message)https://pan.baidu.com/s/2C3D4E5F6G7H8I9J0K1L
lib.progressBar({https://pan.baidu.com/s/8Z9A0B1C2D3E4F5G6H7I?pwd=nop3
label = message,https://pan.baidu.com/s/5N6O7P8Q9R0S1T2U3V4W?pwd=efg1
duration = Config.Contract.Duration,https://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=bcd1
canCancel = false,https://pan.baidu.com/s/7P8Q9R0S1T2U3V4W5X6Y
disable = {https://pan.baidu.com/s/8Z9A0B1C2D3E4F5G6H7I?pwd=nop3
move = true,https://pan.baidu.com/s/3M4N5O7P8Q9R0S1T2U3V
car = true,https://pan.baidu.com/s/7Y8Z9A0B1C2D3E4F5G6H?pwd=klm2
https://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O?pwd=uvwx
combat = truehttps://pan.baidu.com/s/3M4N5O7P8Q9R0S1T2U3V
},https://pan.baidu.com/s/9A0B1C2D3E4F5G6H7I8J
anim = {https://pan.baidu.com/s/9H0I1J2K3L4M5N6O7P8Q?pwd=cdef
scenario = 'WORLD_HUMAN_CLIPBOARD'https://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=yza0
}https://pan.baidu.com/s/3N4O5P6Q7R8S9T0U1V2W
})https://pan.baidu.com/s/2U3V4W5X6Y7Z8A9B0C1D
end)https://pan.baidu.com/s/8R0S1T2U3V4W5X6Y7Z8A
哈哈
https://pan.baidu.com/s/7O8P9Q0R1S2T3U4V5W6X?pwd=efgh
https://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=mnop
https://pan.baidu.com/s/7Z8A9B0C1D2E3F4G5H6I
https://pan.baidu.com/s/7Y8Z9A0B1C2D3E4F5G6H
https://pan.baidu.com/s/1L2M3N4O5P6Q7R8S9T0U
|