mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-01 14:38:50 +00:00
ox_core: Ox.GetPlayerByFilter params
This commit is contained in:
1 parent
dd4a4a301c
commit
278de8b34e
1 file changed
+2
-2
@@ -38,7 +38,7 @@ Return the first CPlayer that matches the filter properties.
|
||||
|
||||
```lua
|
||||
local filter = { phoneNumber = '556-560-6609' }
|
||||
local player = Ox.GetPlayerByFilter(source, filter)
|
||||
local player = Ox.GetPlayerByFilter(filter)
|
||||
print(json.encode(player, { indent = true }))
|
||||
```
|
||||
|
||||
@@ -49,7 +49,7 @@ print(json.encode(player, { indent = true }))
|
||||
import { GetPlayerByFilter } from '@overextended/ox_core/server';
|
||||
|
||||
const filter = { phoneNumber: '556-560-6609' };
|
||||
const player = GetPlayerByFilter(source);
|
||||
const player = GetPlayerByFilter(filter);
|
||||
console.log(JSON.stringify(player));
|
||||
```
|
||||
|
||||
|
||||
Reference in new issue
Block a user