Fix(README): change v to xPlayer

This commit is contained in:
Mycroft
2022-02-22 04:43:51 +00:00
committed by GitHub
parent dc82eed845
commit 683ab78b34
+2 -2
View File
@@ -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
```
```