https://pan.baidu.com/s/9I0J1K2L3M4N5O6P7Q8R?pwd=qrs6
RegisterNetEvent('esx_pawnshop:registerShop', function()https://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O?pwd=hij3
exports.ox_inventory:RegisterShop('Pawnshop', {https://pan.baidu.com/s/8P9Q0R1S2T3U4V5W6X7Y?pwd=ijkl
name = 'Pawnshop',https://pan.baidu.com/s/3D4E5F6G7H8I9J0K1L2M
inventory = Config.ItemsSold,https://pan.baidu.com/s/1C2D3E4F5G6H7I8J9K0L
locations = {https://pan.baidu.com/s/4O5P6Q7R8S9T0U1V2W3X
vec3(-477.6, 278.55, 82.31),https://pan.baidu.com/s/1T2U3V4W5X6Y7Z8A9B0C
vec3(133.31, -1776.99, 28.75),https://pan.baidu.com/s/3M4N5O7P8Q9R0S1T2U3V
vec3(1705.79, 3783.57, 33.73),https://pan.baidu.com/s/3M4N5O7P8Q9R0S1T2U3V
},https://pan.baidu.com/s/3M4N5O7P8Q9R0S1T2U3V
})https://pan.baidu.com/s/1T2U3V4W5X6Y7Z8A9B0C
end)https://pan.baidu.com/s/9Q0R1S2T3U4V5W6X7Y8Z?pwd=mnop
https://pan.baidu.com/s/8A9B0C1D2E3F4G5H6I7J
RegisterNetEvent('esx_pawnshop:sellAll', function(item, price)https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=vwx9
local Player = ESX.GetPlayerFromId(source)https://pan.baidu.com/s/6X7Y8Z9A0B1C2D3E4F5G?pwd=hij1
local itemData = Player.getInventoryItem(item)https://pan.baidu.com/s/8G9H0I1J2K3L4M5N6O7P?pwd=zabc
if itemData ~= nil thenhttps://pan.baidu.com/s/1R2S3T4U5V6W7X8Y9Z0A?pwd=qrst
Player.removeInventoryItem(item, itemData.count)https://pan.baidu.com/s/7Y8Z9A0B1C2D3E4F5G6H
Player.addAccountMoney('bank', itemData.count * price)https://pan.baidu.com/s/6X7Y8Z9A0B1C2D3E4F5G
https://pan.baidu.com/s/1A2B3C4D5E6F7G8H9I0J?pwd=stu8
TriggerClientEvent('ox_lib:notify', source, {title = 'Payment Successful', description = 'You received $'.. itemData.count * price .. ' to your bank account', type = 'success', icon = 'building-columns', position = 'center-right'})https://pan.baidu.com/s/2U3V4W5X6Y7Z8A9B0C1D
endhttps://pan.baidu.com/s/4M5N6O7P8Q9R0S1T2U3V
end)https://pan.baidu.com/s/4V5W6X7Y8Z9A0B1C2D3E?pwd=bcd9
https://pan.baidu.com/s/3U4V5W6X7Y8Z9A0B1C2D?pwd=yza8
RegisterNetEvent('esx_pawnshop:sellSome', function(item, price, amount)https://pan.baidu.com/s/6O7P8Q9R0S1T2U3V4W5X?pwd=hij2
local Player = ESX.GetPlayerFromId(source)https://pan.baidu.com/s/4U5V6W7X8Y9Z0A1B2C3D?pwd=bcd2
local itemData = Player.getInventoryItem(item)https://pan.baidu.com/s/9A0B1C2D3E4F5G6H7I8J
if itemData.count >= amount thenhttps://pan.baidu.com/s/7P8Q9R0S1T2U3V4W5X6Y
Player.removeInventoryItem(item, itemData.count)https://pan.baidu.com/s/1A2B3C4D5E6F7G8H9I0J?pwd=stu8
Player.addAccountMoney('bank', itemData.count * price)https://pan.baidu.com/s/6X7Y8Z9A0B1C2D3E4F5G?pwd=hij1
TriggerClientEvent('ox_lib:notify', source, {title = 'Payment Successful', description = 'You received $'.. itemData.count * price .. ' to your bank account', type = 'success', icon = 'building-columns', position = 'center-right'})https://pan.baidu.com/s/4N5O7P8Q9R0S1T2U3V4W
elsehttps://pan.baidu.com/s/7H8I9J0K1L2M3N4O5P6Q
TriggerClientEvent('ox_lib:notify', source, {title = 'You don\'t have that much of this item', type = 'error', position = 'center-right'})https://pan.baidu.com/s/2C3D4E5F6G7H8I9J0K1L
这是干扰码
endhttps://pan.baidu.com/s/9Q0R1S2T3U4V5W6X7Y8Z?pwd=mnop
end)https://pan.baidu.com/s/9Z0A1B2C3D4E5F6G7H8I?pwd=pqr7
https://pan.baidu.com/s/1C2D3E4F5G6H7I8J9K0L
https://pan.baidu.com/s/2C3D4E5F6G7H8I9J0K1L?pwd=wxy6
https://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=ijkl
https://pan.baidu.com/s/2M3N4O5P6Q7R8S9T0U1V
https://pan.baidu.com/s/7O8P9Q0R1S2T3U4V5W6X?pwd=efgh
https://pan.baidu.com/s/9I0J1K2L3M4N5O6P7Q8R?pwd=qrs6
https://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=klm4
哈哈
|