PlaySoundFromCoord
DocsPlaySoundFromCoord(soundId, audioName, x, y, z, audioRef, isNetwork, range, p8)Description
All found occurrences in b617d, sorted alphabetically and identical lines removed: pastebin.com/eeFc5DiW
gtaforums.com/topic/795622-audio-for-mods
Parameters
| Name | Type | Description |
|---|---|---|
soundId | int | — |
audioName | char* | — |
x | float | — |
y | float | — |
z | float | — |
audioRef | char* | — |
isNetwork | BOOL | — |
range | int | — |
p8 | BOOL | — |
Quick Snippet: Get Coordinatesxyz
xyzAdd this command to your client script to retrieve precise locations in-game.
-- Add this to your client.lua. Type /pos in-game to copy coords.
RegisterCommand('pos', function()
local ped = PlayerPedId()
local coords = GetEntityCoords(ped)
local heading = GetEntityHeading(ped)
local output = string.format("vector4(%.2f, %.2f, %.2f, %.2f)", coords.x, coords.y, coords.z, heading)
print(output)
TriggerEvent('chat:addMessage', { args = { '^4[COORD]^0', output } })
end)Returns
voidThis native does not return a value.