Skip to content

Commit

Permalink
fix player var
Browse files Browse the repository at this point in the history
  • Loading branch information
Metrakit authored Nov 10, 2019
1 parent a6e0218 commit a7a3d45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vote/example_esx.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ end

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

-- Pour notifier (requiert pNotify) :
-- TriggerClientEvent("pNotify:SendNotification", -1, {
Expand Down

0 comments on commit a7a3d45

Please sign in to comment.