Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default bag #11

Open
Marilina3000 opened this issue Feb 17, 2025 · 1 comment
Open

Default bag #11

Marilina3000 opened this issue Feb 17, 2025 · 1 comment

Comments

@Marilina3000
Copy link

Is there a way to prevent the ox_inventory default bag from showing when dropping an item that is already included in the config file.

@0Programmer
Copy link
Collaborator

That object should delete itself, please check

snowy_drops/client/main.lua

Lines 143 to 155 in 88acacc

CreateThread(function()
local startTime = GetGameTimer()
local oxProp = nil
repeat
Wait(500)
oxProp = GetClosestObjectOfType(point.coords.x, point.coords.y, point.coords.z, 25.0, joaat('prop_paper_bag_small'), false, false, false)
if oxProp ~= 0 and DoesEntityExist(oxProp) then break end
until (GetGameTimer() - startTime) >= 6000
if DoesEntityExist(oxProp) then
SetEntityAsMissionEntity(oxProp, false, true)
DeleteEntity(oxProp)
end
end)
it is possible that your prop is different then set there. Not sure if
SetConvarReplicated('inventory:dropmodel', 'prop_paper_bag_small')
is set correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants