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

not able to get in to trunk #22

Open
Jhudri opened this issue Aug 23, 2019 · 7 comments
Open

not able to get in to trunk #22

Jhudri opened this issue Aug 23, 2019 · 7 comments

Comments

@Jhudri
Copy link

Jhudri commented Aug 23, 2019

some times I can not get in to the trunk. its completely random with no errors. I press the key to open and nothing happens. I try different cars and its the same issue. to fix the issue I have to restart the resource or relog and it works again. it only happens to one player at a time, other people can access the trunk im not able to.

@danishrp
Copy link

Ye it's actually a fault in the client side code ill see if i can remember the line

@danishrp
Copy link

The issue right now is trying to remember what the change was haha

@danishrp
Copy link

danishrp commented Sep 14, 2019

Okay so found the fix just had to go thrue our servers git to find what i did.

But it's a dirty work around.

ESX.RegisterServerCallback('esx_truck:checkvehicle', function(source, cb, vehicleplate)
    local isFound = false
    local _source = source
    local plate = vehicleplated
    if plate ~= " " or plate ~= nil or plate ~= "" then
        for _, v in pairs(VehicleList) do
            if (plate == v.vehicleplate) then
                isFound = true
                break
            
            end
        end
    else
        isFound = true
    end
    cb(false)
end)

The thing i did is cb(false) everytime since something in this is broken and locks up the trunk.

@danishrp
Copy link

But that should fix your issue more or less.

@danishrp
Copy link

Let me know if this fixes it for you :)

@osprey1337
Copy link

@danishrp didn't work, it bugs out for some people still

@Jhudri
Copy link
Author

Jhudri commented Sep 20, 2019

yeah me to

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

3 participants