fxAddPunchImpact | Multi Theft Auto: Wiki Skip to content

fxAddPunchImpact

Client-side
Server-side
Shared

Manual Review Required

Please finish this page using the corresponding Old Wiki article. Go to Contribution guidelines for more information.


Creates a punch impact particle effect (a small dust cloud).

OOP Syntax Help! I don't understand this!

Syntax

bool fxAddPunchImpact ( float posX, float posY, float posZ, float dirX, float dirY, float dirZ )
Required Arguments
  • posX: MISSING_PARAM_DESC
  • posY: MISSING_PARAM_DESC
  • posZ: MISSING_PARAM_DESC
  • dirX: MISSING_PARAM_DESC
  • dirY: MISSING_PARAM_DESC
  • dirZ: MISSING_PARAM_DESC

Returns

  • bool: value

Returns a true if the operation was successful, false otherwise.

Code Examples

shared

This example will create a Punch Impact Effect next to you when typing/pimpactin the Chatbox.

addCommandHandler("pimpact", function()
local x, y, z = getElementPosition(localPlayer)
local gz = getGroundPosition(x, y, z)
fxAddPunchImpact(x, y, gz, 0, 0, 0)
end)