_PLAY_SOUND_FROM_ITEM
Hash
0xE8EAFF7B41EDD291Runtime name
PlaySoundFromItemNamespaceAUDIO
SideClient
NameCommunity guess
Docs
Since build1207
Signature
void _PLAY_SOUND_FROM_ITEM(Hash item, Hash soundSet, Any p2);Parameters
| Name | Type | Description |
|---|---|---|
item | Hash | — |
soundSet | Hash | — |
p2 | Any | — |
Returns void
Description
item: value returned from 0x2E1CDC1FF3B8473E
soundSet: HUD_SHOP_SOUNDSET, COMPANIONS_ROBBERIES_SOUNDSET
Usage
PlaySoundFromItem(item, soundSet, p2)
-- always works, by hash
Citizen.InvokeNative(0xE8EAFF7B41EDD291, item, soundSet, p2)JavaScript and C#
PlaySoundFromItem(item, soundSet, p2);
// by hash
Citizen.invokeNative('0xE8EAFF7B41EDD291', item, soundSet, p2);Function.Call((Hash)0xE8EAFF7B41EDD291, item, soundSet, p2);- 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 name is a community guess and may change. If the named call is missing in your client build, use
InvokeNativewith the hash — it always works.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.