PlaySoundFromEntity
DocsPlaySoundFromEntity(soundId, audioName, entity, audioRef, isNetwork, p5)Description
All found occurrences in b617d, sorted alphabetically and identical lines removed: pastebin.com/f2A7vTj0
No changes made in b678d.
gtaforums.com/topic/795622-audio-for-mods
Parameters
| Name | Type | Description |
|---|---|---|
soundId | int | — |
audioName | char* | — |
entity | Entity | — |
audioRef | char* | — |
isNetwork | BOOL | — |
p5 | Any | — |
Quick Snippet: Get Entityentity
entityUse this to obtain an entity handle from the player's aim or crosshair.
-- Get the entity the player is aiming at
local ped = PlayerPedId()
local hit, entity = GetEntityPlayerIsFreeAimingAt(PlayerId())
if hit and entity ~= 0 then
print("Entity: " .. entity)
print("Model: " .. GetEntityModel(entity))
print("Type: " .. GetEntityType(entity)) -- 1=Ped, 2=Vehicle, 3=Object
endReturns
voidThis native does not return a value.