forked from Simnation/Main
Create plugin_inv_client.lua
This commit is contained in:
parent
c6d0b58860
commit
cc683e9e76
1 changed files with 14 additions and 0 deletions
|
@ -0,0 +1,14 @@
|
||||||
|
Citizen.CreateThread(function()
|
||||||
|
while true do
|
||||||
|
Citizen.Wait(0)
|
||||||
|
local isUnconscious = exports['visn_are']:isPlayerUnconscious()
|
||||||
|
|
||||||
|
if isUnconscious then
|
||||||
|
exports['qs-inventory']:setBusyState(true)
|
||||||
|
end
|
||||||
|
|
||||||
|
if exports['qs-inventory']:IsPlayerBusy(PlayerPedId()) then
|
||||||
|
exports['qs-inventory']:setBusyState(false)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end)
|
Loading…
Add table
Add a link
Reference in a new issue