_0xCB8F4C9343EBE240
Only used in R* SP Scripts _GET_PLAYER_W* - _GET_RANDOM_*
Hash
0xCB8F4C9343EBE240Runtime name
N_0xcb8f4c9343ebe240NamespacePED
SideClient
NameHash only
Docs
Since build1207
Signature
BOOL _0xCB8F4C9343EBE240(Ped ped, Hash eventType, Vector3* coords);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
eventType | Hash | — |
coords | Vector3* | — |
Returns BOOL
Description
Only used in R* SP Scripts
_GET_PLAYER_W* - _GET_RANDOM_*
Usage
local retval, coords = N_0xcb8f4c9343ebe240(ped, eventType, coords)
-- always works, by hash
local retval, coords = Citizen.InvokeNative(0xCB8F4C9343EBE240, ped, eventType, Citizen.PointerValueVector(), Citizen.ReturnResultAnyway())JavaScript and C#
const [retval, coords] = N_0xcb8f4c9343ebe240(ped, eventType, coords);
// by hash
const [retval, coords] = Citizen.invokeNative('0xCB8F4C9343EBE240', ped, eventType, Citizen.pointerValueVector(), Citizen.returnResultAnyway());var coords = new OutputArgument();
bool retval = Function.Call<bool>((Hash)0xCB8F4C9343EBE240, ped, eventType, coords);
// coords.GetResult<Vector3>()- Hash parameters: the named function also accepts a string and hashes it for you;
Citizen.InvokeNativeneeds the number — passjoaat("name")or a backtick literal like`name`. - The last argument is an in/out pointer: pass its initial value, and the updated value is returned after the result.
- This native has no known name, so the runtime exposes it only as
N_0xcb8f4c9343ebe240(if present in the client snapshot).InvokeNativewith the hash always works.
Enums and flags
- eEventType 492 values
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.