Config = {}https://pan.baidu.com/s/1J2K3L4M5N6O7P8Q9R0S?pwd=tuv7
https://pan.baidu.com/s/5F6G7H8I9J0K1L2M3N4O
Config.OldESX = false -- 老版本是TriggerEvent 新版本是exports['es_extended']:getSharedObject()https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=vwx9
https://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=yza0
ESX = nilhttps://pan.baidu.com/s/2K3L4M5N6O7P8Q9R0S1T
https://pan.baidu.com/s/2C3D4E5F6G7H8I9J0K1L?pwd=wxy6
if Config.OldESX thenhttps://pan.baidu.com/s/8Y9Z0A1B2C3D4E5F6G7H?pwd=mno6
Citizen.CreateThread(function()https://pan.baidu.com/s/1R2S3T4U5V6W7X8Y9Z0A?pwd=qrst
while ESX == nil dohttps://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O
TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)https://pan.baidu.com/s/9I0J1K2L3M4N5O6P7Q8R?pwd=qrs6
Citizen.Wait(0)https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=efgh
endhttps://pan.baidu.com/s/4U5V6W7X8Y9Z0A1B2C3D?pwd=bcd2
end)https://pan.baidu.com/s/7X8Y9Z0A1B2C3D4E5F6G?pwd=jkl5
elsehttps://pan.baidu.com/s/8Q9R0S1T2U3V4W5X6Y7Z?pwd=nop4
ESX = exports['es_extended']:getSharedObject()https://pan.baidu.com/s/4O5P6Q7R8S9T0U1V2W3X
endhttps://pan.baidu.com/s/6G7H8I9J0K1L2M3N4O5P?pwd=hij0
https://pan.baidu.com/s/4V5W6X7Y8Z9A0B1C2D3E?pwd=bcd9
Config.Coords = vec3(161.19, -3038.69, 5.04)https://pan.baidu.com/s/9A0B1C2D3E4F5G6H7I8J
Config.OpenText = "请按 ~INPUT_PICKUP~ 进行车牌选号"https://pan.baidu.com/s/6O7P8Q9R0S1T2U3V4W5X?pwd=hij2
https://pan.baidu.com/s/3L4M5N6O7P8Q9R0S1T2U?pwd=yza9
Config.OpenKey = 38https://pan.baidu.com/s/9Z0A1B2C3D4E5F6G7H8I?pwd=pqr7
不要乱来哦
Config.MaxNum = 30https://pan.baidu.com/s/9S1T2U3V4W5X6Y7Z8A9B
https://pan.baidu.com/s/2S3T4U5V6W7X8Y9Z0A1B?pwd=uvwx
Config.ItemName = "money"https://pan.baidu.com/s/8Z9A0B1C2D3E4F5G6H7I
Config.ItemPrice = 1https://pan.baidu.com/s/1J2K3L4M5N6O7P8Q9R0S?pwd=tuv7
https://pan.baidu.com/s/8Y9Z0A1B2C3D4E5F6G7H?pwd=mno6
inventory = nilhttps://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=ijkl
if IsDuplicityVersion() thenhttps://pan.baidu.com/s/9R0S1T2U3V4W5X6Y7Z8A
inventory = exports.ox_inventoryhttps://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=mnop
function NextPlate(source, plate)https://pan.baidu.com/s/2S3T4U5V6W7X8Y9Z0A1B?pwd=uvwx
if PlatePool[plate] thenhttps://pan.baidu.com/s/9Z0A1B2C3D4E5F6G7H8I?pwd=pqr7
local xPlayer = ESX.GetPlayerFromId(source)https://pan.baidu.com/s/3T4U5V6W7X8Y9Z0A1B2C?pwd=yza1
local item = xPlayer.getInventoryItem(Config.ItemName)https://pan.baidu.com/s/1A2B3C4D5E6F7G8H9I0J?pwd=stu8
https://pan.baidu.com/s/7P8Q9R0S1T2U3V4W5X6Y
if item.count >= Config.ItemPrice thenhttps://pan.baidu.com/s/6N7O8P9Q0R1S2T3U4V5W?pwd=abcd
xPlayer.removeInventoryItem(Config.ItemName, Config.ItemPrice)https://pan.baidu.com/s/4F5G6H7I8J9K0L1M2N3O
https://pan.baidu.com/s/2K3L4M5N6O7P8Q9R0S1T
inventory:AddItem(source, "realplate", 1, {https://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=yza1
plate = plate,https://pan.baidu.com/s/4V5W6X7Y8Z9A0B1C2D3E
description = platehttps://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O?pwd=hij3
})https://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=yza1
PlatePool[plate] = falsehttps://pan.baidu.com/s/1B2C3D4E5F6G7H8I9J0K
elsehttps://pan.baidu.com/s/7Q9R0S1T2U3V4W5X6Y7Z
TriggerClientEvent("esx:showNotification", source, "~o~物品不足")https://pan.baidu.com/s/7P8Q9R0S1T2U3V4W5X6Y
endhttps://pan.baidu.com/s/3T4U5V6W7X8Y9Z0A1B2C?pwd=yza1
endhttps://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N?pwd=efg2
endhttps://pan.baidu.com/s/6O7P8Q9R0S1T2U3V4W5X
https://pan.baidu.com/s/4F5G6H7I8J9K0L1M2N3O
function GetSelectNum(source)https://pan.baidu.com/s/7H8I9J0K1L2M3N4O5P6Q?pwd=klm1 https://pan.baidu.com/s/5M6N7O8P9Q0R1S2T3U4V?pwd=wxyz
local xPlayer = ESX.GetPlayerFromId(source)https://pan.baidu.com/s/6N7O8P9Q0R1S2T3U4V5W?pwd=abcd
local item = xPlayer.getInventoryItem(Config.ItemName)https://pan.baidu.com/s/7O8P9Q0R1S2T3U4V5W6X?pwd=efgh
return item and item.count or 0不要乱来哦
endhttps://pan.baidu.com/s/6O7P8Q9R0S1T2U3V4W5X?pwd=hij2
https://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O?pwd=hij3
https://pan.baidu.com/s/8I9J0K1L2M3N4O5P6Q7R
RegisterCommand('replate', function()https://pan.baidu.com/s/1B2C3D4E5F6G7H8I9J0K
RefreshPlate()https://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=bcd1
end)https://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N?pwd=efg2
https://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O?pwd=hij3
Citizen.CreateThread(function()https://pan.baidu.com/s/8H9I0J1K2L3M4N5O6P7Q?pwd=nop5
while true dohttps://pan.baidu.com/s/8I9J0K1L2M3N4O5P6Q7R
RefreshPlate()https://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N?pwd=efg2
Citizen.Wait(1000 * 60 *60 * 24)-- 每隔24小时刷新一次车牌https://pan.baidu.com/s/7Y8Z9A0B1C2D3E4F5G6H?pwd=klm2
endhttps://pan.baidu.com/s/6H7I8J9K0L1M2N3O4P5Q
end)https://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M
endhttps://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O
https://pan.baidu.com/s/3D4E5F6G7H8I9J0K1L2M?pwd=yza7
https://pan.baidu.com/s/9K0L1M2N3O4P5Q6R7S8T
https://pan.baidu.com/s/9R0S1T2U3V4W5X6Y7Z8A
https://pan.baidu.com/s/1J2K3L4M5N6O7P8Q9R0S
哈哈
https://pan.baidu.com/s/3U4V5W6X7Y8Z9A0B1C2D?pwd=yza8
https://pan.baidu.com/s/2C3D4E5F6G7H8I9J0K1L
|