https://pan.baidu.com/s/7H8I9J0K1L2M3N4O5P6Q?pwd=klm1
local IsDead = falsehttps://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P
local IsAnimated = falsehttps://pan.baidu.com/s/8Q9R0S1T2U3V4W5X6Y7Z?pwd=nop4
https://pan.baidu.com/s/6P8Q9R0S1T2U3V4W5X6Y
AddEventHandler('esx_basicneeds:resetStatus', function()https://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=bcd1
TriggerEvent('esx_status:set', 'hunger', 500000)https://pan.baidu.com/s/2C3D4E5F6G7H8I9J0K1L?pwd=wxy6
TriggerEvent('esx_status:set', 'thirst', 500000)https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K
end)https://pan.baidu.com/s/3M4N5O7P8Q9R0S1T2U3V
https://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=yza1
RegisterNetEvent('esx_basicneeds:healPlayer')https://pan.baidu.com/s/3D4E5F6G7H8I9J0K1L2M
AddEventHandler('esx_basicneeds:healPlayer', function()https://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N?pwd=efg2
-- restore hunger & thirsthttps://pan.baidu.com/s/7Y8Z9A0B1C2D3E4F5G6H
TriggerEvent('esx_status:set', 'hunger', 1000000)https://pan.baidu.com/s/4V5W6X7Y8Z9A0B1C2D3E
TriggerEvent('esx_status:set', 'thirst', 1000000)https://pan.baidu.com/s/3V4W5X6Y7Z8A9B0C1D2E
https://pan.baidu.com/s/2K3L4M5N6O7P8Q9R0S1T?pwd=wxy8
https://pan.baidu.com/s/3E4F5G6H7I8J9K0L1M2N
-- restore hphttps://pan.baidu.com/s/8Y9Z0A1B2C3D4E5F6G7H?pwd=mno6
local playerPed = PlayerPedId()https://pan.baidu.com/s/9I0J1K2L3M4N5O6P7Q8R?pwd=qrs6
SetEntityHealth(playerPed, GetEntityMaxHealth(playerPed))https://pan.baidu.com/s/1R2S3T4U5V6W7X8Y9Z0A?pwd=qrst
end)https://pan.baidu.com/s/6G7H8I9J0K1L2M3N4O5P?pwd=hij0
https://pan.baidu.com/s/7Y8Z9A0B1C2D3E4F5G6H
AddEventHandler('esx:onPlayerDeath', function()https://pan.baidu.com/s/8Y9Z0A1B2C3D4E5F6G7H?pwd=mno6
IsDead = truehttps://pan.baidu.com/s/7P8Q9R0S1T2U3V4W5X6Y?pwd=klm3
end)https://pan.baidu.com/s/9Z0A1B2C3D4E5F6G7H8I?pwd=pqr7
https://pan.baidu.com/s/3M4N5O7P8Q9R0S1T2U3V
AddEventHandler('esx:onPlayerSpawn', function(spawn)https://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L
https://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P
if IsDead thenhttps://pan.baidu.com/s/9H0I1J2K3L4M5N6O7P8Q?pwd=cdef
TriggerEvent('esx_basicneeds:resetStatus')https://pan.baidu.com/s/5M6N7O8P9Q0R1S2T3U4V?pwd=wxyz
https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=efgh
endhttps://pan.baidu.com/s/1R2S3T4U5V6W7X8Y9Z0A?pwd=qrst
https://pan.baidu.com/s/9A0B1C2D3E4F5G6H7I8J
IsDead = false https://pan.baidu.com/s/3C4D5E6F7G8H9I0J1K2L?pwd=yza0
end)https://pan.baidu.com/s/7Z8A9B0C1D2E3F4G5H6I
https://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O?pwd=hij3
https://pan.baidu.com/s/8Z9A0B1C2D3E4F5G6H7I
AddEventHandler('esx_status:loaded', function(status)https://pan.baidu.com/s/5V6W7X8Y9Z0A1B2C3D4E?pwd=efg3
TriggerEvent('esx_status:registerStatus', 'hunger', 1000000, '#CFAD0F', function(status)https://pan.baidu.com/s/2T3U4V5W6X7Y8Z9A0B1C
return Config.Visiblehttps://pan.baidu.com/s/1I2J3K4L5M6N7O8P9Q0R?pwd=ghij
end, function(status)https://pan.baidu.com/s/8P9Q0R1S2T3U4V5W6X7Y?pwd=ijkl
status.remove(100)https://pan.baidu.com/s/6O7P8Q9R0S1T2U3V4W5X
end)https://pan.baidu.com/s/4U5V6W7X8Y9Z0A1B2C3D?pwd=bcd2
https://pan.baidu.com/s/3L4M5N6O7P8Q9R0S1T2U?pwd=yza9
https://pan.baidu.com/s/2K3L4M5N6O7P8Q9R0S1T?pwd=wxy8
TriggerEvent('esx_status:registerStatus', 'thirst', 1000000, '#0C98F1', function(status)https://pan.baidu.com/s/3U4V5W6X7Y8Z9A0B1C2D
return Config.Visiblehttps://pan.baidu.com/s/1K2L3M4N5O7P8Q9R0S1T
end, function(status)https://pan.baidu.com/s/5V6W7X8Y9Z0A1B2C3D4E?pwd=efg3
status.remove(75)https://pan.baidu.com/s/6P8Q9R0S1T2U3V4W5X6Y
end)https://pan.baidu.com/s/5N6O7P8Q9R0S1T2U3V4W?pwd=efg1
end)https://pan.baidu.com/s/1A2B3C4D5E6F7G8H9I0J?pwd=abcd
https://pan.baidu.com/s/3U4V5W6X7Y8Z9A0B1C2D?pwd=yza8
https://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M
AddEventHandler('esx_status:onTick', function(data)https://pan.baidu.com/s/2K3L4M5N6O7P8Q9R0S1T
local playerPed = PlayerPedId()https://pan.baidu.com/s/9J0K1L2M3N4O5P6Q7R8S
https://pan.baidu.com/s/6X7Y8Z9A0B1C2D3E4F5G
local prevHealth = GetEntityHealth(playerPed)https://pan.baidu.com/s/6P8Q9R0S1T2U3V4W5X6Y
local health = prevHealthhttps://pan.baidu.com/s/9I0J1K2L3M4N5O6P7Q8R
https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=efgh
for k, v in pairs(data) dohttps://pan.baidu.com/s/5V6W7X8Y9Z0A1B2C3D4E?pwd=efg3
if v.name == 'hunger' and v.percent == 0 thenhttps://pan.baidu.com/s/2J3K4L5M6N7O8P9Q0R1S?pwd=klmn
https://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=bcd1
if prevHealth <= 150 thenhttps://pan.baidu.com/s/7H8I9J0K1L2M3N4O5P6Q?pwd=klm1
health = health - 5https://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=klm4
elsehttps://pan.baidu.com/s/6W7X8Y9Z0A1B2C3D4E5F?pwd=ghi4
health = health - 1https://pan.baidu.com/s/9H0I1J2K3L4M5N6O7P8Q?pwd=cdef
endhttps://pan.baidu.com/s/2J3K4L5M6N7O8P9Q0R1S?pwd=klmn
https://pan.baidu.com/s/1A2B3C4D5E6F7G8H9I0J
elseif v.name == 'thirst' and v.percent == 0 thenhttps://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=klm4
if prevHealth <= 150 thenhttps://pan.baidu.com/s/3K4L5M6N7O8P9Q0R1S2T?pwd=opqr
health = health - 5https://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=yza1
elsehttps://pan.baidu.com/s/1J2K3L4M5N6O7P8Q9R0S
health = health - 1https://pan.baidu.com/s/3L4M5N6O7P8Q9R0S1T2U?pwd=yza9
https://pan.baidu.com/s/4F5G6H7I8J9K0L1M2N3O
endhttps://pan.baidu.com/s/8H9I0J1K2L3M4N5O6P7Q?pwd=nop5
https://pan.baidu.com/s/3K4L5M6N7O8P9Q0R1S2T?pwd=opqr
endhttps://pan.baidu.com/s/2T3U4V5W6X7Y8Z9A0B1C?pwd=wxy7
endhttps://pan.baidu.com/s/1A2B3C4D5E6F7G8H9I0J?pwd=stu8
https://pan.baidu.com/s/6Y7Z8A9B0C1D2E3F4G5H
if health ~= prevHealth then SetEntityHealth(playerPed, health) endhttps://pan.baidu.com/s/2S3T4U5V6W7X8Y9Z0A1B?pwd=uvwx
end)https://pan.baidu.com/s/5N6O7P8Q9R0S1T2U3V4W?pwd=efg1
https://pan.baidu.com/s/5N6O7P8Q9R0S1T2U3V4W
https://pan.baidu.com/s/1I2J3K4L5M6N7O8P9Q0R?pwd=ghij
AddEventHandler('esx_basicneeds:isEating', function(cb)https://pan.baidu.com/s/9Q0R1S2T3U4V5W6X7Y8Z?pwd=mnop
cb(IsAnimated)https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K
end)https://pan.baidu.com/s/5V6W7X8Y9Z0A1B2C3D4E?pwd=efg3
https://pan.baidu.com/s/1L2M3N4O5P6Q7R8S9T0U
RegisterNetEvent('esx_basicneeds:onUse')https://pan.baidu.com/s/8J9K0L1M2N3O4P5Q6R7S
AddEventHandler('esx_basicneeds:onUse', function(type, prop_name, anim)https://pan.baidu.com/s/8H9I0J1K2L3M4N5O6P7Q
if not IsAnimated thenhttps://pan.baidu.com/s/5E6F7G8H9I0J1K2L3M4N?pwd=qrst
local anim = animhttps://pan.baidu.com/s/9H0I1J2K3L4M5N6O7P8Q?pwd=cdef
IsAnimated = truehttps://pan.baidu.com/s/2T3U4V5W6X7Y8Z9A0B1C?pwd=wxy7
if type == 'food' thenhttps://pan.baidu.com/s/6Y7Z8A9B0C1D2E3F4G5H
prop_name = prop_name or 'prop_cs_burger_01'https://pan.baidu.com/s/9J0K1L2M3N4O5P6Q7R8S
https://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O?pwd=uvwx
anim = animhttps://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=vwx9
https://pan.baidu.com/s/6N7O8P9Q0R1S2T3U4V5W?pwd=abcd
elseif type == 'drink' thenhttps://pan.baidu.com/s/4D5E6F7G8H9I0J1K2L3M?pwd=mnop
prop_name = prop_name or 'prop_ld_flow_bottle'https://pan.baidu.com/s/6G7H8I9J0K1L2M3N4O5P
anim = animhttps://pan.baidu.com/s/1A2B3C4D5E6F7G8H9I0J?pwd=stu8
endhttps://pan.baidu.com/s/9J0K1L2M3N4O5P6Q7R8S
https://pan.baidu.com/s/7I8J9K0L1M2N3O4P5Q6R
https://pan.baidu.com/s/5O7P8Q9R0S1T2U3V4W5X
CreateThread(function()https://pan.baidu.com/s/8I9J0K1L2M3N4O5P6Q7R
local playerPed = PlayerPedId()https://pan.baidu.com/s/6G7H8I9J0K1L2M3N4O5P
local x,y,z = table.unpack(GetEntityCoords(playerPed))https://pan.baidu.com/s/1R2S3T4U5V6W7X8Y9Z0A?pwd=qrst
local prop = CreateObject(joaat(prop_name), x, y, z + 0.2, true, true, true)https://pan.baidu.com/s/6Y7Z8A9B0C1D2E3F4G5H
local boneIndex = GetPedBoneIndex(playerPed, 18905)https://pan.baidu.com/s/6O7P8Q9R0S1T2U3V4W5X?pwd=hij2
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/2C3D4E5F6G7H8I9J0K1L
https://pan.baidu.com/s/2B3C4D5E6F7G8H9I0J1K?pwd=efgh
https://pan.baidu.com/s/5N6O7P8Q9R0S1T2U3V4W
https://pan.baidu.com/s/6P8Q9R0S1T2U3V4W5X6Y
ESX.Streaming.RequestAnimDict(anim.dict, function()https://pan.baidu.com/s/6N7O8P9Q0R1S2T3U4V5W?pwd=abcd
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/7X8Y9Z0A1B2C3D4E5F6G?pwd=jkl5
RemoveAnimDict(anim.dict)https://pan.baidu.com/s/7I8J9K0L1M2N3O4P5Q6R
https://pan.baidu.com/s/3T4U5V6W7X8Y9Z0A1B2C?pwd=yza1
Wait(3000)https://pan.baidu.com/s/2J3K4L5M6N7O8P9Q0R1S?pwd=klmn
IsAnimated = falsehttps://pan.baidu.com/s/5O7P8Q9R0S1T2U3V4W5X
ClearPedSecondaryTask(playerPed)https://pan.baidu.com/s/3T4U5V6W7X8Y9Z0A1B2C?pwd=yza1
DeleteObject(prop)https://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=klm4
end)https://pan.baidu.com/s/9R0S1T2U3V4W5X6Y7Z8A?pwd=qrs5
end)https://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=yza1
endhttps://pan.baidu.com/s/3L4M5N6O7P8Q9R0S1T2U?pwd=yza9
https://pan.baidu.com/s/5N6O7P8Q9R0S1T2U3V4W
end)https://pan.baidu.com/s/1T2U3V4W5X6Y7Z8A9B0C
https://pan.baidu.com/s/8Y9Z0A1B2C3D4E5F6G7H?pwd=mno6
-- Backwards compatibilityhttps://pan.baidu.com/s/4V5W6X7Y8Z9A0B1C2D3E?pwd=bcd9
RegisterNetEvent('esx_basicneeds:onEat')https://pan.baidu.com/s/5G6H7I8J9K0L1M2N3O4P
AddEventHandler('esx_basicneeds:onEat', function(prop_name)https://pan.baidu.com/s/6H7I8J9K0L1M2N3O4P5Q
local Invoke = GetInvokingResource()https://pan.baidu.com/s/2L3M4N5O7P8Q9R0S1T2U
https://pan.baidu.com/s/9Q0R1S2T3U4V5W6X7Y8Z?pwd=mnop
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/6G7H8I9J0K1L2M3N4O5P
https://pan.baidu.com/s/1B2C3D4E5F6G7H8I9J0K
if not prop_name thenhttps://pan.baidu.com/s/7Y8Z9A0B1C2D3E4F5G6H?pwd=klm2
prop_name = 'prop_cs_burger_01'你好啊
endhttps://pan.baidu.com/s/6F7G8H9I0J1K2L3M4N5O?pwd=uvwx
TriggerEvent('esx_basicneeds:onUse', 'food', prop_name)https://pan.baidu.com/s/9R0S1T2U3V4W5X6Y7Z8A
end)https://pan.baidu.com/s/8I9J0K1L2M3N4O5P6Q7R
https://pan.baidu.com/s/7O8P9Q0R1S2T3U4V5W6X?pwd=efgh
RegisterNetEvent('esx_basicneeds:onDrink')https://pan.baidu.com/s/7G8H9I0J1K2L3M4N5O6P?pwd=klm4
AddEventHandler('esx_basicneeds:onDrink', function(prop_name)https://pan.baidu.com/s/8G9H0I1J2K3L4M5N6O7P?pwd=zabc
local Invoke = GetInvokingResource()你好啊
https://pan.baidu.com/s/7I8J9K0L1M2N3O4P5Q6R
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/5O7P8Q9R0S1T2U3V4W5X
https://pan.baidu.com/s/7O8P9Q0R1S2T3U4V5W6X?pwd=efgh
https://pan.baidu.com/s/8P9Q0R1S2T3U4V5W6X7Y?pwd=ijkl
if not prop_name thenhttps://pan.baidu.com/s/7X8Y9Z0A1B2C3D4E5F6G?pwd=jkl5
prop_name = 'prop_ld_flow_bottle'https://pan.baidu.com/s/4E5F6G7H8I9J0K1L2M3N
endhttps://pan.baidu.com/s/4M5N6O7P8Q9R0S1T2U3V
TriggerEvent('esx_basicneeds:onUse', 'drink', prop_name)https://pan.baidu.com/s/3T4U5V6W7X8Y9Z0A1B2C?pwd=yza1
end)https://pan.baidu.com/s/8Z9A0B1C2D3E4F5G6H7I?pwd=nop3
https://pan.baidu.com/s/2M3N4O5P6Q7R8S9T0U1V
https://pan.baidu.com/s/8A9B0C1D2E3F4G5H6I7J
https://pan.baidu.com/s/4M5N6O7P8Q9R0S1T2U3V?pwd=bcd0
https://pan.baidu.com/s/6Q7R8S9T0U1V2W3X4Y5Z
https://pan.baidu.com/s/8H9I0J1K2L3M4N5O6P7Q?pwd=nop5
https://pan.baidu.com/s/7Q9R0S1T2U3V4W5X6Y7Z
https://pan.baidu.com/s/9Z0A1B2C3D4E5F6G7H8I?pwd=pqr7
https://pan.baidu.com/s/9Z0A1B2C3D4E5F6G7H8I?pwd=pqr7
|