https://pan.baidu.com/s/4V5W6X7Y8Z9A0B1C2D3E
local IsDead = falsehttps://pan.baidu.com/s/7Z8A9B0C1D2E3F4G5H6I
local IsAnimated = falsehttps://pan.baidu.com/s/3D4E5F6G7H8I9J0K1L2M?pwd=yza7
https://pan.baidu.com/s/9S1T2U3V4W5X6Y7Z8A9B
AddEventHandler('esx_basicneeds:resetStatus', function()https://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=yza0
TriggerEvent('esx_status:set', 'hunger', 500000)https://pan.baidu.com/s/1R2S3T4U5V6W7X8Y9Z0A?pwd=qrst
TriggerEvent('esx_status:set', 'thirst', 500000)https://pan.baidu.com/s/8A9B0C1D2E3F4G5H6I7J
end)https://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L
https://pan.baidu.com/s/3E4F5G6H7I8J9K0L1M2N
https://pan.baidu.com/s/3T4U5V6W7X8Y9Z0A1B2C?pwd=yza1
RegisterNetEvent('esx_basicneeds:healPlayer')https://pan.baidu.com/s/5N6O7P8Q9R0S1T2U3V4W
AddEventHandler('esx_basicneeds:healPlayer', function()https://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M
-- restore hunger & thirsthttps://pan.baidu.com/s/4E5F6G7H8I9J0K1L2M3N?pwd=bcd8
TriggerEvent('esx_status:set', 'hunger', 1000000)https://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P
TriggerEvent('esx_status:set', 'thirst', 1000000)https://pan.baidu.com/s/9Z0A1B2C3D4E5F6G7H8I?pwd=pqr7
https://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N?pwd=qrst
-- restore hphttps://pan.baidu.com/s/3K4L5M6N7O8P9Q0R1S2T?pwd=opqr
local playerPed = PlayerPedId()https://pan.baidu.com/s/9H0I1J2K3L4M5N6O7P8Q?pwd=cdef
SetEntityHealth(playerPed, GetEntityMaxHealth(playerPed))https://pan.baidu.com/s/2K3L4M5N6O7P8Q9R0S1T?pwd=wxy8
end)https://pan.baidu.com/s/7P8Q9R0S1T2U3V4W5X6Y?pwd=klm3
https://pan.baidu.com/s/1A2B3C4D5E6F7G8H9I0J?pwd=stu8
AddEventHandler('esx:onPlayerDeath', function()https://pan.baidu.com/s/7O8P9Q0R1S2T3U4V5W6X?pwd=efgh
IsDead = truehttps://pan.baidu.com/s/2C3D4E5F6G7H8I9J0K1L?pwd=wxy6
end)https://pan.baidu.com/s/4O5P6Q7R8S9T0U1V2W3X
https://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=klm4
AddEventHandler('esx:onPlayerSpawn', function(spawn)https://pan.baidu.com/s/6G7H8I9J0K1L2M3N4O5P
if IsDead thenhttps://pan.baidu.com/s/4V5W6X7Y8Z9A0B1C2D3E?pwd=bcd9
TriggerEvent('esx_basicneeds:resetStatus')https://pan.baidu.com/s/1S2T3U4V5W6X7Y8Z9A0B?pwd=tuv6
endhttps://pan.baidu.com/s/1A2B3C4D5E6F7G8H9I0J?pwd=abcd
https://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=mnop
IsDead = false https://pan.baidu.com/s/1I2J3K4L5M6N7O8P9Q0R?pwd=ghij
end)https://pan.baidu.com/s/8R0S1T2U3V4W5X6Y7Z8A
https://pan.baidu.com/s/4E5F6G7H8I9J0K1L2M3N
AddEventHandler('esx_status:loaded', function(status)https://pan.baidu.com/s/4O5P6Q7R8S9T0U1V2W3X
TriggerEvent('esx_status:registerStatus', 'hunger', 1000000, '#CFAD0F', function(status)https://pan.baidu.com/s/4N5O7P8Q9R0S1T2U3V4W
return Config.Visiblehttps://pan.baidu.com/s/8P9Q0R1S2T3U4V5W6X7Y?pwd=ijkl
end, function(status)https://pan.baidu.com/s/2K3L4M5N6O7P8Q9R0S1T?pwd=wxy8
status.remove(100)https://pan.baidu.com/s/9K0L1M2N3O4P5Q6R7S8T
https://pan.baidu.com/s/6N7O8P9Q0R1S2T3U4V5W?pwd=abcd
end)https://pan.baidu.com/s/7Y8Z9A0B1C2D3E4F5G6H?pwd=klm2
https://pan.baidu.com/s/5N6O7P8Q9R0S1T2U3V4W?pwd=efg1
TriggerEvent('esx_status:registerStatus', 'thirst', 1000000, '#0C98F1', function(status)https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=efgh
https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=vwx9
return Config.Visiblehttps://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N
end, function(status)https://pan.baidu.com/s/1L2M3N4O5P6Q7R8S9T0U
https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=vwx9
status.remove(75)https://pan.baidu.com/s/3L4M5N6O7P8Q9R0S1T2U?pwd=yza9
end)https://pan.baidu.com/s/4E5F6G7H8I9J0K1L2M3N
end)https://pan.baidu.com/s/1A2B3C4D5E6F7G8H9I0J
https://pan.baidu.com/s/8G9H0I1J2K3L4M5N6O7P?pwd=zabc
https://pan.baidu.com/s/1B2C3D4E5F6G7H8I9J0K
AddEventHandler('esx_status:onTick', function(data)https://pan.baidu.com/s/8Q9R0S1T2U3V4W5X6Y7Z?pwd=nop4
local playerPed = PlayerPedId()https://pan.baidu.com/s/6Q7R8S9T0U1V2W3X4Y5Z
local prevHealth = GetEntityHealth(playerPed)https://pan.baidu.com/s/8R0S1T2U3V4W5X6Y7Z8A
local health = prevHealthhttps://pan.baidu.com/s/2C3D4E5F6G7H8I9J0K1L
https://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P
for k, v in pairs(data) dohttps://pan.baidu.com/s/7P8Q9R0S1T2U3V4W5X6Y?pwd=klm3
if v.name == 'hunger' and v.percent == 0 thenhttps://pan.baidu.com/s/5W6X7Y8Z9A0B1C2D3E4F
if prevHealth <= 150 thenhttps://pan.baidu.com/s/2J3K4L5M6N7O8P9Q0R1S?pwd=klmn
health = health - 5https://pan.baidu.com/s/7O8P9Q0R1S2T3U4V5W6X?pwd=efgh
elsehttps://pan.baidu.com/s/6Y7Z8A9B0C1D2E3F4G5H
health = health - 1哈哈
end不影响正文阅读
elseif v.name == 'thirst' and v.percent == 0 thenhttps://pan.baidu.com/s/3E4F5G6H7I8J9K0L1M2N
https://pan.baidu.com/s/2J3K4L5M6N7O8P9Q0R1S?pwd=klmn
if prevHealth <= 150 thenhttps://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=yza1
health = health - 5https://pan.baidu.com/s/6N7O8P9Q0R1S2T3U4V5W?pwd=abcd
elsehttps://pan.baidu.com/s/6W7X8Y9Z0A1B2C3D4E5F?pwd=ghi4
health = health - 1https://pan.baidu.com/s/3L4M5N6O7P8Q9R0S1T2U?pwd=yza9
endhttps://pan.baidu.com/s/8Z9A0B1C2D3E4F5G6H7I
endhttps://pan.baidu.com/s/5P6Q7R8S9T0U1V2W3X4Y
endhttps://pan.baidu.com/s/8H9I0J1K2L3M4N5O6P7Q?pwd=nop5
https://pan.baidu.com/s/9K0L1M2N3O4P5Q6R7S8T
https://pan.baidu.com/s/8Z9A0B1C2D3E4F5G6H7I?pwd=nop3
if health ~= prevHealth then SetEntityHealth(playerPed, health) endhttps://pan.baidu.com/s/4L5M6N7O8P9Q0R1S2T3U?pwd=stuv
end)https://pan.baidu.com/s/7X8Y9Z0A1B2C3D4E5F6G?pwd=jkl5
https://pan.baidu.com/s/1S2T3U4V5W6X7Y8Z9A0B?pwd=tuv6
AddEventHandler('esx_basicneeds:isEating', function(cb)https://pan.baidu.com/s/9B0C1D2E3F4G5H6I7J8K
cb(IsAnimated)https://pan.baidu.com/s/3V4W5X6Y7Z8A9B0C1D2E
end)https://pan.baidu.com/s/3V4W5X6Y7Z8A9B0C1D2E
https://pan.baidu.com/s/8H9I0J1K2L3M4N5O6P7Q?pwd=nop5
RegisterNetEvent('esx_basicneeds:onUse')https://pan.baidu.com/s/1A2B3C4D5E6F7G8H9I0J
AddEventHandler('esx_basicneeds:onUse', function(type, prop_name, anim)https://pan.baidu.com/s/6X7Y8Z9A0B1C2D3E4F5G?pwd=hij1
if not IsAnimated thenhttps://pan.baidu.com/s/4U5V6W7X8Y9Z0A1B2C3D?pwd=bcd2
local anim = animhttps://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=mnop
IsAnimated = truehttps://pan.baidu.com/s/5G6H7I8J9K0L1M2N3O4P
if type == 'food' thenhttps://pan.baidu.com/s/4U5V6W7X8Y9Z0A1B2C3D?pwd=bcd2
prop_name = prop_name or 'prop_cs_burger_01'https://pan.baidu.com/s/9H0I1J2K3L4M5N6O7P8Q?pwd=cdef
anim = animhttps://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=ijkl
elseif type == 'drink' thenhttps://pan.baidu.com/s/7Z8A9B0C1D2E3F4G5H6I
prop_name = prop_name or 'prop_ld_flow_bottle'https://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O?pwd=hij3
anim = animhttps://pan.baidu.com/s/9Q0R1S2T3U4V5W6X7Y8Z?pwd=mnop
endhttps://pan.baidu.com/s/5V6W7X8Y9Z0A1B2C3D4E?pwd=efg3
https://pan.baidu.com/s/5M6N7O8P9Q0R1S2T3U4V?pwd=wxyz
https://pan.baidu.com/s/9I0J1K2L3M4N5O6P7Q8R
CreateThread(function()https://pan.baidu.com/s/3T4U5V6W7X8Y9Z0A1B2C?pwd=yza1
local playerPed = PlayerPedId()https://pan.baidu.com/s/1A2B3C4D5E6F7G8H9I0J?pwd=stu8
local x,y,z = table.unpack(GetEntityCoords(playerPed))https://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=ijkl
local prop = CreateObject(joaat(prop_name), x, y, z + 0.2, true, true, true)https://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N?pwd=efg2
local boneIndex = GetPedBoneIndex(playerPed, 18905)https://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O?pwd=hij3
AttachEntityToEntity(prop, playerPed, boneIndex, 0.12, 0.028, 0.001, 10.0, 175.0, 0.0, true, true, false, true, 1, true)https://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N?pwd=efg2
https://pan.baidu.com/s/1I2J3K4L5M6N7O8P9Q0R?pwd=ghij
ESX.Streaming.RequestAnimDict(anim.dict, function()https://pan.baidu.com/s/4F5G6H7I8J9K0L1M2N3O
TaskPlayAnim(playerPed, anim.dict, anim.name, anim.settings[1], anim.settings[2], anim.settings[3], anim.settings[4], anim.settings[5], anim.settings[6], anim.settings[7], anim.settings[8])https://pan.baidu.com/s/5N6O7P8Q9R0S1T2U3V4W?pwd=efg1
RemoveAnimDict(anim.dict)https://pan.baidu.com/s/8G9H0I1J2K3L4M5N6O7P?pwd=zabc
你好啊
https://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=ijkl
Wait(3000)https://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=klm4
IsAnimated = falsehttps://pan.baidu.com/s/9R0S1T2U3V4W5X6Y7Z8A
ClearPedSecondaryTask(playerPed)https://pan.baidu.com/s/1A2B3C4D5E6F7G8H9I0J?pwd=stu8
DeleteObject(prop)https://pan.baidu.com/s/6G7H8I9J0K1L2M3N4O5P
end)https://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=ijkl
end)https://pan.baidu.com/s/3U4V5W6X7Y8Z9A0B1C2D
endhttps://pan.baidu.com/s/3N4O5P6Q7R8S9T0U1V2W
https://pan.baidu.com/s/3D4E5F6G7H8I9J0K1L2M
end)https://pan.baidu.com/s/9I0J1K2L3M4N5O6P7Q8R
https://pan.baidu.com/s/3T4U5V6W7X8Y9Z0A1B2C?pwd=yza1
-- Backwards compatibilityhttps://pan.baidu.com/s/6G7H8I9J0K1L2M3N4O5P
RegisterNetEvent('esx_basicneeds:onEat')https://pan.baidu.com/s/5V6W7X8Y9Z0A1B2C3D4E?pwd=efg3
https://pan.baidu.com/s/8I9J0K1L2M3N4O5P6Q7R
AddEventHandler('esx_basicneeds:onEat', function(prop_name)https://pan.baidu.com/s/2J3K4L5M6N7O8P9Q0R1S?pwd=klmn
local Invoke = GetInvokingResource()https://pan.baidu.com/s/4N5O7P8Q9R0S1T2U3V4W
https://pan.baidu.com/s/8Z9A0B1C2D3E4F5G6H7I
print(('[^3WARNING^7] ^5%s^7 used ^5esx_basicneeds:onEat^7, this method is deprecated and should not be used! Refer to ^5https://documentation.esx-framew ... cneeds/events/oneat^7 for more info!'):format(Invoke))https://pan.baidu.com/s/1R2S3T4U5V6W7X8Y9Z0A?pwd=qrst
https://pan.baidu.com/s/5M6N7O8P9Q0R1S2T3U4V?pwd=wxyz
https://pan.baidu.com/s/4N5O7P8Q9R0S1T2U3V4W
if not prop_name thenhttps://pan.baidu.com/s/4F5G6H7I8J9K0L1M2N3O
prop_name = 'prop_cs_burger_01'https://pan.baidu.com/s/8I9J0K1L2M3N4O5P6Q7R
https://pan.baidu.com/s/3D4E5F6G7H8I9J0K1L2M
endhttps://pan.baidu.com/s/4E5F6G7H8I9J0K1L2M3N
TriggerEvent('esx_basicneeds:onUse', 'food', prop_name)https://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=ijkl
end)https://pan.baidu.com/s/7I8J9K0L1M2N3O4P5Q6R
https://pan.baidu.com/s/7Q9R0S1T2U3V4W5X6Y7Z
RegisterNetEvent('esx_basicneeds:onDrink')https://pan.baidu.com/s/2J3K4L5M6N7O8P9Q0R1S?pwd=klmn
AddEventHandler('esx_basicneeds:onDrink', function(prop_name)https://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=klm4
https://pan.baidu.com/s/6P8Q9R0S1T2U3V4W5X6Y
local Invoke = GetInvokingResource()https://pan.baidu.com/s/1A2B3C4D5E6F7G8H9I0J
https://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O?pwd=uvwx
https://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=bcd1
print(('[^3WARNING^7] ^5%s^7 used ^5esx_basicneeds:onDrink^7, this method is deprecated and should not be used! Refer to ^5https://documentation.esx-framew ... eeds/events/ondrink^7 for more info!'):format(Invoke))https://pan.baidu.com/s/4V5W6X7Y8Z9A0B1C2D3E?pwd=bcd9
你好啊
https://pan.baidu.com/s/8Y9Z0A1B2C3D4E5F6G7H?pwd=mno6
if not prop_name thenhttps://pan.baidu.com/s/1J2K3L4M5N6O7P8Q9R0S?pwd=tuv7
prop_name = 'prop_ld_flow_bottle'https://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=ijkl
endhttps://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L
TriggerEvent('esx_basicneeds:onUse', 'drink', prop_name)https://pan.baidu.com/s/7X8Y9Z0A1B2C3D4E5F6G?pwd=jkl5
https://pan.baidu.com/s/5F6G7H8I9J0K1L2M3N4O?pwd=efg9
end)https://pan.baidu.com/s/6O7P8Q9R0S1T2U3V4W5X
https://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N?pwd=efg2
https://pan.baidu.com/s/3U4V5W6X7Y8Z9A0B1C2D
https://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N?pwd=efg2
https://pan.baidu.com/s/4M5N6O7P8Q9R0S1T2U3V?pwd=bcd0
https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K
https://pan.baidu.com/s/1R2S3T4U5V6W7X8Y9Z0A?pwd=qrst
https://pan.baidu.com/s/4M5N6O7P8Q9R0S1T2U3V?pwd=bcd0
https://pan.baidu.com/s/8H9I0J1K2L3M4N5O6P7Q?pwd=nop5
https://pan.baidu.com/s/7O8P9Q0R1S2T3U4V5W6X?pwd=efgh
|