GET_CURRENT_TARGET_FOR_PED
Hash
0xCD66FEA29400A0B5Runtime name
GetCurrentTargetForPedNamespacePED
SideClient
NameOfficial
Docs
Since build1207
Signature
Entity GET_CURRENT_TARGET_FOR_PED(Ped ped);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
Returns Entity
Usage
local retval = GetCurrentTargetForPed(ped)
-- always works, by hash
local retval = Citizen.InvokeNative(0xCD66FEA29400A0B5, ped, Citizen.ResultAsInteger())JavaScript and C#
const retval = GetCurrentTargetForPed(ped);
// by hash
const retval = Citizen.invokeNative('0xCD66FEA29400A0B5', ped, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0xCD66FEA29400A0B5, ped);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.