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

Cant find job on esx legacy? #9

Open
SuperRustly opened this issue Aug 20, 2023 · 2 comments
Open

Cant find job on esx legacy? #9

SuperRustly opened this issue Aug 20, 2023 · 2 comments

Comments

@SuperRustly
Copy link

it cant find an job on client 51

@anes66
Copy link

anes66 commented Aug 21, 2023

same problem here

@bert1475
Copy link

Hi i have a solution to your problem!!
Go to your client.lua and replace the

function GetJob()
    local PlayerData = PlayerData()
    if Framework == 1 then
        return PlayerData.job.name ,PlayerData.job.grade.level
    elseif Framework == 2 then
        return PlayerData.job.name, PlayerData.job.grade
    end
end

with

function GetJob()
    local Player = PlayerData() 
    if not Player or not Player.job then
        return nil, nil 
    end

    if Framework == 1 then
        return Player.job.name, Player.job.grade.level
    elseif Framework == 2 then
        return Player.job.name, Player.job.grade
    else
        return nil, nil 
    end
end

then it should work

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