lib.callback.register('lunar_garage:getContractOption', function()https://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P
if cache.vehicle thenhttps://pan.baidu.com/s/2D3E4F5G6H7I8J9K0L1M
https://pan.baidu.com/s/2J3K4L5M6N7O8P9Q0R1S?pwd=klmn
ShowNotification(locale('cant_in_vehicle'), 'error')https://pan.baidu.com/s/8P9Q0R1S2T3U4V5W6X7Y?pwd=ijkl
returnhttps://pan.baidu.com/s/8Q9R0S1T2U3V4W5X6Y7Z
end不要乱来哦
https://pan.baidu.com/s/7Y8Z9A0B1C2D3E4F5G6H?pwd=klm2
local vehicle = lib.getClosestVehicle(cache.coords, 3.0, false)https://pan.baidu.com/s/4U5V6W7X8Y9Z0A1B2C3D?pwd=bcd2
https://pan.baidu.com/s/6O7P8Q9R0S1T2U3V4W5X?pwd=hij2
if not vehicle thenhttps://pan.baidu.com/s/5N6O7P8Q9R0S1T2U3V4W
ShowNotification(locale('no_vehicle_near_you'), 'error')https://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=yza0
return https://pan.baidu.com/s/3D4E5F6G7H8I9J0K1L2M
https://pan.baidu.com/s/6O7P8Q9R0S1T2U3V4W5X?pwd=hij2
endhttps://pan.baidu.com/s/1T2U3V4W5X6Y7Z8A9B0C
https://pan.baidu.com/s/3K4L5M6N7O8P9Q0R1S2T?pwd=opqr
https://pan.baidu.com/s/8H9I0J1K2L3M4N5O6P7Q?pwd=nop5
local plate = GetVehicleNumberPlateText(vehicle)https://pan.baidu.com/s/2C3D4E5F6G7H8I9J0K1L?pwd=wxy6
https://pan.baidu.com/s/6P8Q9R0S1T2U3V4W5X6Y
local label = GetVehicleLabel(GetEntityModel(vehicle))https://pan.baidu.com/s/4O5P6Q7R8S9T0U1V2W3X
local option = promise.new()https://pan.baidu.com/s/5O7P8Q9R0S1T2U3V4W5X
https://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O?pwd=uvwx
local function Resolve(name)https://pan.baidu.com/s/9A0B1C2D3E4F5G6H7I8J?pwd=qrs4
option:resolve(name)https://pan.baidu.com/s/9Z0A1B2C3D4E5F6G7H8I?pwd=pqr7
endhttps://pan.baidu.com/s/3D4E5F6G7H8I9J0K1L2M?pwd=yza7
https://pan.baidu.com/s/5F6G7H8I9J0K1L2M3N4O
lib.registerContext({https://pan.baidu.com/s/4E5F6G7H8I9J0K1L2M3N
id = 'contract',https://pan.baidu.com/s/9K0L1M2N3O4P5Q6R7S8T
title = locale('contract'),https://pan.baidu.com/s/4L5M6N7O8P9Q0R1S2T3U?pwd=stuv
onClose = function()https://pan.baidu.com/s/7P8Q9R0S1T2U3V4W5X6Y?pwd=klm3
option:resolve()https://pan.baidu.com/s/4V5W6X7Y8Z9A0B1C2D3E?pwd=bcd9
end,https://pan.baidu.com/s/1R2S3T4U5V6W7X8Y9Z0A?pwd=qrst
https://pan.baidu.com/s/8P9Q0R1S2T3U4V5W6X7Y?pwd=ijkl
options = {https://pan.baidu.com/s/6O7P8Q9R0S1T2U3V4W5X
{https://pan.baidu.com/s/1T2U3V4W5X6Y7Z8A9B0C
title = locale('transfer_player'),https://pan.baidu.com/s/6Q7R8S9T0U1V2W3X4Y5Z
icon = 'user',https://pan.baidu.com/s/8H9I0J1K2L3M4N5O6P7Q?pwd=nop5
args = 'transfer_player',https://pan.baidu.com/s/2C3D4E5F6G7H8I9J0K1L?pwd=wxy6
https://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N?pwd=efg2
onSelect = Resolvehttps://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O?pwd=uvwx
},https://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=bcd1
{https://pan.baidu.com/s/2K3L4M5N6O7P8Q9R0S1T
title = locale('transfer_society'),https://pan.baidu.com/s/8G9H0I1J2K3L4M5N6O7P?pwd=zabc
icon = 'users',https://pan.baidu.com/s/4U5V6W7X8Y9Z0A1B2C3D?pwd=bcd2
args = 'transfer_society',https://pan.baidu.com/s/1R2S3T4U5V6W7X8Y9Z0A?pwd=qrst
https://pan.baidu.com/s/4U5V6W7X8Y9Z0A1B2C3D?pwd=bcd2
onSelect = Resolvehttps://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=vwx9
},https://pan.baidu.com/s/9B0C1D2E3F4G5H6I7J8K
{https://pan.baidu.com/s/4M5N6O7P8Q9R0S1T2U3V?pwd=bcd0
title = locale('withdraw_society'),https://pan.baidu.com/s/6G7H8I9J0K1L2M3N4O5P?pwd=hij0
icon = 'rotate-left',https://pan.baidu.com/s/5V6W7X8Y9Z0A1B2C3D4E?pwd=efg3
args = 'withdraw_society',https://pan.baidu.com/s/3D4E5F6G7H8I9J0K1L2M?pwd=yza7
onSelect = Resolvehttps://pan.baidu.com/s/9A0B1C2D3E4F5G6H7I8J?pwd=qrs4
}https://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N?pwd=efg2
}https://pan.baidu.com/s/9J0K1L2M3N4O5P6Q7R8S
})https://pan.baidu.com/s/4M5N6O7P8Q9R0S1T2U3V?pwd=bcd0
https://pan.baidu.com/s/1B2C3D4E5F6G7H8I9J0K
lib.showContext('contract')https://pan.baidu.com/s/4O5P6Q7R8S9T0U1V2W3X
https://pan.baidu.com/s/9I0J1K2L3M4N5O6P7Q8R?pwd=qrs6
return Citizen.Await(option), plate, labelhttps://pan.baidu.com/s/2D3E4F5G6H7I8J9K0L1M
https://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=ijkl
end)https://pan.baidu.com/s/2T3U4V5W6X7Y8Z9A0B1C
https://pan.baidu.com/s/4M5N6O7P8Q9R0S1T2U3V?pwd=bcd0
lib.callback.register('lunar_garage:getTargetPlayer', function()https://pan.baidu.com/s/6X7Y8Z9A0B1C2D3E4F5G?pwd=hij1
local input = lib.inputDialog(locale('pick_player'), {https://pan.baidu.com/s/1A2B3C4D5E6F7G8H9I0J
locale('player_id'), locale('sell_price') https://pan.baidu.com/s/4E5F6G7H8I9J0K1L2M3N
})https://pan.baidu.com/s/9H0I1J2K3L4M5N6O7P8Q?pwd=cdef
https://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N?pwd=efg2
if not input then return endhttps://pan.baidu.com/s/1R2S3T4U5V6W7X8Y9Z0A?pwd=qrst
https://pan.baidu.com/s/4V5W6X7Y8Z9A0B1C2D3E
return tonumber(input[1]), tonumber(input[2])https://pan.baidu.com/s/6Q7R8S9T0U1V2W3X4Y5Z
end)https://pan.baidu.com/s/4L5M6N7O8P9Q0R1S2T3U?pwd=stuv
https://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N?pwd=qrst
lib.callback.register('lunar_garage:getAgreement', function(price, label, name)https://pan.baidu.com/s/5N6O7P8Q9R0S1T2U3V4W?pwd=efg1
local result = lib.alertDialog({https://pan.baidu.com/s/6X7Y8Z9A0B1C2D3E4F5G
header = locale('offer'),https://pan.baidu.com/s/8P9Q0R1S2T3U4V5W6X7Y?pwd=ijkl
content = locale('offer_content', name, label, price),https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=efgh
centered = true,https://pan.baidu.com/s/8Q9R0S1T2U3V4W5X6Y7Z?pwd=nop4
labels = {https://pan.baidu.com/s/8R0S1T2U3V4W5X6Y7Z8A
confirm = locale('offer_confirm'),https://pan.baidu.com/s/6H7I8J9K0L1M2N3O4P5Q
cancel = locale('offer_cancel')https://pan.baidu.com/s/8Z9A0B1C2D3E4F5G6H7I
}https://pan.baidu.com/s/7Q9R0S1T2U3V4W5X6Y7Z
})https://pan.baidu.com/s/1B2C3D4E5F6G7H8I9J0K
https://pan.baidu.com/s/3U4V5W6X7Y8Z9A0B1C2D
return result == 'confirm'https://pan.baidu.com/s/9J0K1L2M3N4O5P6Q7R8S
end)https://pan.baidu.com/s/5G6H7I8J9K0L1M2N3O4P
https://pan.baidu.com/s/4M5N6O7P8Q9R0S1T2U3V?pwd=bcd0
---@param type 'transfer' | 'withdraw'https://pan.baidu.com/s/3U4V5W6X7Y8Z9A0B1C2D
lib.callback.register('lunar_garage:societyPrompt', function(type)https://pan.baidu.com/s/8H9I0J1K2L3M4N5O6P7Q
local result = lib.alertDialog({https://pan.baidu.com/s/4V5W6X7Y8Z9A0B1C2D3E?pwd=bcd9
header = locale('society_prompt'),https://pan.baidu.com/s/4E5F6G7H8I9J0K1L2M3N?pwd=bcd8
content = type == 'transfer' and locale('society_transfer') or locale('society_withdraw'),不影响正文阅读
centered = true,https://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P
labels = {https://pan.baidu.com/s/1J2K3L4M5N6O7P8Q9R0S?pwd=tuv7
confirm = locale('society_confirm'),https://pan.baidu.com/s/2C3D4E5F6G7H8I9J0K1L?pwd=wxy6
https://pan.baidu.com/s/3N4O5P6Q7R8S9T0U1V2W
cancel = locale('society_cancel'),https://pan.baidu.com/s/1B2C3D4E5F6G7H8I9J0K
}https://pan.baidu.com/s/3N4O5P6Q7R8S9T0U1V2W
})https://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=ijkl
https://pan.baidu.com/s/5G6H7I8J9K0L1M2N3O4P
return result == 'confirm'https://pan.baidu.com/s/1A2B3C4D5E6F7G8H9I0J?pwd=abcd
end)https://pan.baidu.com/s/3D4E5F6G7H8I9J0K1L2M
https://pan.baidu.com/s/2J3K4L5M6N7O8P9Q0R1S?pwd=klmn
https://pan.baidu.com/s/9H0I1J2K3L4M5N6O7P8Q?pwd=cdef
RegisterNetEvent('lunar_garage:contractAnim', function(message)https://pan.baidu.com/s/9Q0R1S2T3U4V5W6X7Y8Z?pwd=mnop
lib.progressBar({https://pan.baidu.com/s/9I0J1K2L3M4N5O6P7Q8R?pwd=qrs6
https://pan.baidu.com/s/2K3L4M5N6O7P8Q9R0S1T?pwd=wxy8
label = message,https://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=yza0
duration = Config.Contract.Duration,https://pan.baidu.com/s/1R2S3T4U5V6W7X8Y9Z0A?pwd=qrst
https://pan.baidu.com/s/4M5N6O7P8Q9R0S1T2U3V
canCancel = false,https://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N?pwd=efg2
disable = {https://pan.baidu.com/s/9I0J1K2L3M4N5O6P7Q8R?pwd=qrs6
move = true,https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=efgh
car = true,https://pan.baidu.com/s/3U4V5W6X7Y8Z9A0B1C2D
combat = truehttps://pan.baidu.com/s/2K3L4M5N6O7P8Q9R0S1T?pwd=wxy8
},https://pan.baidu.com/s/5F6G7H8I9J0K1L2M3N4O
anim = {https://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O?pwd=uvwx
scenario = 'WORLD_HUMAN_CLIPBOARD'https://pan.baidu.com/s/1L2M3N4O5P6Q7R8S9T0U
}https://pan.baidu.com/s/4W5X6Y7Z8A9B0C1D2E3F
})https://pan.baidu.com/s/9A0B1C2D3E4F5G6H7I8J
end)https://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N?pwd=qrst
https://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=yza0
https://pan.baidu.com/s/6G7H8I9J0K1L2M3N4O5P
https://pan.baidu.com/s/1S2T3U4V5W6X7Y8Z9A0B?pwd=tuv6
https://pan.baidu.com/s/8Q9R0S1T2U3V4W5X6Y7Z
https://pan.baidu.com/s/7Q9R0S1T2U3V4W5X6Y7Z
https://pan.baidu.com/s/9K0L1M2N3O4P5Q6R7S8T
https://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P
|