CAN_START_ITEM_INTERACTION
Hash
0x2D19BC4DF626CBE7Runtime name
CanStartItemInteractionNamespaceTASK
SideClient
NameOfficial
Docs
Since build1207
Signature
BOOL CAN_START_ITEM_INTERACTION(Ped ped, Hash itemHash, Hash interactionAnimHash, int p3);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
itemHash | Hash | — |
interactionAnimHash | Hash | — |
p3 | int | — |
Returns BOOL
Usage
local retval = CanStartItemInteraction(ped, itemHash, interactionAnimHash, p3)
-- always works, by hash
local retval = Citizen.InvokeNative(0x2D19BC4DF626CBE7, ped, itemHash, interactionAnimHash, p3, Citizen.ReturnResultAnyway())JavaScript and C#
const retval = CanStartItemInteraction(ped, itemHash, interactionAnimHash, p3);
// by hash
const retval = Citizen.invokeNative('0x2D19BC4DF626CBE7', ped, itemHash, interactionAnimHash, p3, Citizen.returnResultAnyway());bool retval = Function.Call<bool>((Hash)0x2D19BC4DF626CBE7, ped, itemHash, interactionAnimHash, p3);- 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`.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.