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

Backpack in air if player changes ped #11

Open
TheSmugGod opened this issue Feb 11, 2023 · 4 comments
Open

Backpack in air if player changes ped #11

TheSmugGod opened this issue Feb 11, 2023 · 4 comments

Comments

@TheSmugGod
Copy link

as stated in the title, if a player changes his ped or mp player, the backpack will freeze in place before the ped change

@Esterze
Copy link

Esterze commented Feb 11, 2023

Can confirm this. An example of how to achieve this would be running the /reloadchar command.

@criminalist
Copy link

It’s the same when you log into the server, until you take off your backpack it will hang in the air.

@C17DAGOAT
Copy link

anyone find a soloution to this

@xMaddMackx
Copy link

In case anyone is still looking for a solution to this:

Add this to the bottom of the client.lua:

CreateThread(function()
    while true do 
        Wait(5000)
        
        if DoesEntityExist(bagObj) then 
            if not IsEntityAttachedToAnyPed(bagObj) then 
                NetworkRequestControlOfEntity(bagObj)
                Wait(100)
                DeleteEntity(bagObj)
            end
        end
    end
end)

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

5 participants