mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 03:01:31 +00:00
Fix(README): change v to xPlayer
This commit is contained in:
@@ -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
|
||||
```
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user