From a7a3d4573bc90e8af24d09a1a0623abe482a8a0e Mon Sep 17 00:00:00 2001 From: Jordane Date: Sun, 10 Nov 2019 11:10:28 +0100 Subject: [PATCH] fix player var --- vote/example_esx.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vote/example_esx.lua b/vote/example_esx.lua index d7aaa3a..b78cc43 100644 --- a/vote/example_esx.lua +++ b/vote/example_esx.lua @@ -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, {