ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Client events
  3. onClientWorldSound

Event

onClientWorldSound

A world sound from another player. The event is registered, but the current client does not send these reports yet, so it does not arrive for now.

Handler

addEventHandler("onClientWorldSound", root, function(data) ... end)

Parameters

datatable
Sound data.Different type in MTA:SA: int group

Differences from MTA:SA

  • Parameters in a different colour differ from MTA:SA.
  • These MTA:SA parameters are not here: int index, float x, float y, float z

In MTA:SA

function(int group, int index, float x, float y, float z)

Source

source is the player.

Example

addEventHandler("onClientWorldSound", root, function(data)
    iprint(data)
end)

See also