From 683ab78b34668853f10d6c8fd80c2154d90a019d Mon Sep 17 00:00:00 2001 From: Mycroft Date: Tue, 22 Feb 2022 04:43:51 +0000 Subject: [PATCH] Fix(README): change `v` to `xPlayer` --- esx_example/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/esx_example/README.md b/esx_example/README.md index 36020956..c23e9e9c 100644 --- a/esx_example/README.md +++ b/esx_example/README.md @@ -39,7 +39,7 @@ ```lua local xPlayers = ESX.GetExtendedPlayers() -- Returns all xPlayers for _, xPlayer in pairs(xPlayers) do - if v.job.name == 'police' then + if xPlayer.job.name == 'police' then TriggerClientEvent('esx:showNotification', xPlayer.source, 'You are a cop!') end end @@ -48,4 +48,4 @@ for _, xPlayer in pairs(xPlayers) do TriggerClientEvent('esx:showNotification', xPlayer.source, 'You are a cop!') end -``` \ No newline at end of file +```