#deleted
1 messages · Page 1 of 1 (latest)
I'd 100% use it in our project if the body damage thing wasnt there
but thats great work dude tbh good stuff
Bc-wounding not working?
i think working this https://forum.cfx.re/t/ox-inventory-brocode-edit/5244608
can u help me for resize the body image ? i'll make an extra slot there, but im stuck 🥹 on size of the body img
same reference, I added 6 hotslots, item search feature, and health system from brodoce
Someone managed to get it working in qbox?
it will any framework
u have to add exports.BC_Wounding:ResetAll() to your healing items and revive event
can give examples?
I did it Muri!
local player = PlayerPedId()
if isDead or InLaststand then
local pos = GetEntityCoords(player, true)
NetworkResurrectLocalPlayer(pos.x, pos.y, pos.z, GetEntityHeading(player), true, false)
isDead = false
SetEntityInvincible(player, false)
SetLaststand(false)
end
if isInHospitalBed then
loadAnimDict(inBedDict)
TaskPlayAnim(player, inBedDict , inBedAnim, 8.0, 1.0, -1, 1, 0, 0, 0, 0 )
SetEntityInvincible(player, true)
canLeaveBed = true
end
TriggerServerEvent("hospital:server:RestoreWeaponDamage")
SetEntityMaxHealth(player, 200)
SetEntityHealth(player, 200)
ClearPedBloodDamage(player)
SetPlayerSprint(PlayerId(), true)
ResetAll()
ResetPedMovementClipset(player, 0.0)
TriggerServerEvent('hud:server:RelieveStress', 100)
TriggerServerEvent("hospital:server:SetDeathStatus", false)
TriggerServerEvent("hospital:server:SetLaststandStatus", false)
emsNotified = false
QBCore.Functions.Notify(Lang:t('info.healthy'))
exports.BC_Wounding:ResetAll()
end)```
maybe like this
tried to mess with it a little
How get item qty # back on items? I couldn't figure it out earlier today when I went back to mess with my edit more 
will you realease it?
this might help u
- need to do for hotbar too
alright sick ill check it out thanks bro
now i cam gonna appreciate u to give me a small idea by sharing that tool tip idea where its showing item amount and weight 
It’s literally just css edit
Not for now, I still haven’t finished editing it and am looking to use it for my server
It's from original edit, I just added more border / changed color and font - It's 3 inventory wrappers to adjust in index.css
yeee
You should try a deep red translucent, almost black, for inventory background color
maybe but its seems fine to me cuz if i make too dark there will be problem like when u buy or any inv notify will not be visible
TYrue, just a suggestion looks good as is!
PP Community is voting on their 2.0 inventory scheme RN
anyone know why the body image isnt showing up properly for me?
Ive got everything to work expect the revive/bandage resetting the bars..
I put the exports in the events. Using QBOX.
Should be pretty simple, send your code
Ive figured it out for qbcore. I just went with a qbcore build for now.
For me works in qbox
How did you get it to work?
RegisterNetEvent('hospital:client:TreatWounds', function()
local hasBandage = exports.ox_inventory:Search('count', 'bandage') > 0
if not hasBandage then
exports.qbx_core:Notify(locale('error.no_bandage'), 'error')
return
end
local player = GetClosestPlayer()
if not player then
exports.qbx_core:Notify(locale('error.no_player'), 'error')
return
end
if lib.progressCircle({
duration = 5000,
position = 'bottom',
label = locale('progress.healing'),
useWhileDead = false,
canCancel = true,
disable = {
move = false,
car = false,
combat = true,
mouse = false,
},
anim = {
dict = HealAnimDict,
clip = HealAnim,
},
})
then
StopAnimTask(cache.ped, HealAnimDict, 'exit', 1.0)
exports.qbx_core:Notify(locale('success.helped_player'), 'success')
TriggerServerEvent('hospital:server:TreatWounds', GetPlayerServerId(player))
exports.BC_Wounding:ResetAll()
else
StopAnimTask(cache.ped, HealAnimDict, 'exit', 1.0)
exports.qbx_core:Notify(locale('error.canceled'), 'error')
end
end)
---@param targetId number playerId
RegisterNetEvent('hospital:client:HelpPerson', function(targetId)
if GetInvokingResource() then return end
if lib.progressCircle({
duration = math.random(30000, 60000),
position = 'bottom',
label = locale('progress.revive'),
useWhileDead = false,
canCancel = true,
disable = {
move = false,
car = false,
combat = true,
mouse = false,
},
anim = {
dict = HealAnimDict,
clip = HealAnim,
},
})
then
exports.qbx_core:Notify(locale('success.revived'), 'success')
TriggerServerEvent('hospital:server:RevivePlayer', targetId)
exports.BC_Wounding:ResetAll()
else
exports.qbx_core:Notify(locale('error.canceled'), 'error')
end
end)
RegisterNetEvent('hospital:client:RevivePlayer', function()
local hasFirstAid = exports.ox_inventory:Search('count', 'firstaid') > 0
if not hasFirstAid then
exports.qbx_core:Notify(locale('error.no_firstaid'), 'error')
return
end
local player = GetClosestPlayer()
if not player then
exports.qbx_core:Notify(locale('error.no_player'), 'error')
return
end
if lib.progressCircle({
duration = 5000,
position = 'bottom',
label = locale('progress.revive'),
useWhileDead = false,
canCancel = true,
disable = {
move = false,
car = false,
combat = true,
mouse = false,
},
anim = {
dict = HealAnimDict,
clip = HealAnim,
},
})
then
StopAnimTask(cache.ped, HealAnimDict, 'exit', 1.0)
exports.qbx_core:Notify(locale('success.revived'), 'success')
TriggerServerEvent('hospital:server:RevivePlayer', GetPlayerServerId(player))
exports.BC_Wounding:ResetAll()
else
StopAnimTask(cache.ped, HealAnimDict, 'exit', 1.0)
exports.qbx_core:Notify(locale('error.canceled'), 'error')
end
end)RegisterNetEvent('hospital:client:RevivePlayer', function()
local hasFirstAid = exports.ox_inventory:Search('count', 'firstaid') > 0
if not hasFirstAid then
exports.qbx_core:Notify(locale('error.no_firstaid'), 'error')
return
end
local player = GetClosestPlayer()
if not player then
exports.qbx_core:Notify(locale('error.no_player'), 'error')
return
end
if lib.progressCircle({
duration = 5000,
position = 'bottom',
label = locale('progress.revive'),
useWhileDead = false,
canCancel = true,
disable = {
move = false,
car = false,
combat = true,
mouse = false,
},
anim = {
dict = HealAnimDict,
clip = HealAnim,
},
})
then
StopAnimTask(cache.ped, HealAnimDict, 'exit', 1.0)
exports.qbx_core:Notify(locale('success.revived'), 'success')
TriggerServerEvent('hospital:server:RevivePlayer', GetPlayerServerId(player))
exports.BC_Wounding:ResetAll()
else
StopAnimTask(cache.ped, HealAnimDict, 'exit', 1.0)
exports.qbx_core:Notify(locale('error.canceled'), 'error')
end
end)
ox_inventory build
installing pnpm info
https://docs.npmjs.com/downloading-and-installing-node-js-and-npm
instaling nodejs
https://nodejs.org/en
nice
+10000
has anyone gotten the bandage to heal in stages instead of fixing all limbs together and make it sync with the hud HP? or do people just make the bandage heal the entire HP in one go? basically wondering how to get the damage in the inventory to sync with the amublance job properly
i can not for the life of me get this working
like ill take damage but when i revive or use a bandage it stays red
and i have put the exports in
no errors nothing
brocode wounding is set to qbcore because there is no export for qboc
You'll need to edit the code more than likely to use qbox exports.
I have done as they are posted above
Could it be because I could not do what was in the video with the installing the python stuff
Can anyone help me remove the body from the inventory? Or is it not possible?
Hi, I was following your tutorial and I'm getting this error below
\ox_inventory\web>pnpm i
'pnpm' is not recognized as an internal or external command,
operable program or batch file.
@wanton oyster (sorry for marker)
Did you do npm install -g npm
Yes I have the same issues
Pretty sure Muri meant npm install -g pnpm
Obviously you have to install pnpm in order to use commands
I followed the video and it installed what ever come down from the link
But I still get the error
Everything is good for me except the wounds, seems not working at all
Was you able to do the commands in the video ?
The build? Ive done it yes
Mine gets stuck when trying to do the second part
Do you think it would work if you sent me your file ?
Dont think so, its obfuscated
You talk about ox inventory or BC_Wounding?
Ox inventory
Did someone have that bug too? or have any ideia how to solve it?
Because for me is all ok but for other players is that way
Tell them to delete cache and join server again
He already did that sill the same
We also have the same error here in our server and also don't know how to solve it. Its one the weirdest things i've ever seen.
No clearing cache, rebuilding inventory, nothing.
Clearing player inventory, giving him a new character. It stays the same
You mean rebuilding the inventory?
No
https://github.com/ItzMuri/ox_inventory-brocode
Go there download the web folder and replace ok your all files
But do a backup of your images and then put back your images
Okay i Will try that even thought my inventory is heavily modified
Thanks!
It works?
I’m not home right now i Will test it when I can
Its not just ui its other things also for healths just using web folder break health system
Its not my inventory its from brocod i just changed color ask him for support
Thanks for this release. Been playing around with it but can seem to find where to change the "Player Name" at the top of the left inventory, could anyone help?
