Skip to content

Commit

Permalink
Fix player not found
Browse files Browse the repository at this point in the history
  • Loading branch information
dolutattoo authored Jul 4, 2019
1 parent bde1123 commit e3255e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vote/example_esx.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ local function getPlayerByName(playername)
end

AddEventHandler('onPlayerVote', function (playername, ip, date)
local player = getPlayerByName(playername)
local Player = getPlayerByName(playername)
if Player then
Player.addMoney(100)

Expand Down

0 comments on commit e3255e6

Please sign in to comment.