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

Update sv_player.lua #53

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Update sv_player.lua
Fixes functionality for PlayerData.gang. Previously this was set to self.job, making it return the players job, not the players gang. This is fixed by setting this value to self.gang, which returns the desired output of the players gang.
DansMatee authored Sep 4, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 7dd7c669d1db1083c065aa617a3ce0c1f6893b0d
4 changes: 2 additions & 2 deletions server/sv_player.lua
Original file line number Diff line number Diff line change
@@ -167,7 +167,7 @@ NewPlayer = function(source, charid, dbdata)
PlayerData.charname = ("%s %s"):format(self.firstname, self.lastname)
PlayerData.job = self.job
PlayerData.jobgrade = self.jobgrade
PlayerData.gang = self.job
PlayerData.gang = self.gang
PlayerData.ganggrade = self.ganggrade
PlayerData.pobox = self.pobox
PlayerData.jailed = self.jailed
@@ -230,4 +230,4 @@ NewPlayer = function(source, charid, dbdata)
self.getLevel = function() return 0 end -- Deprecated function

return self
end
end