fxAddGunshot
Client-side
Server-side
Shared
This page is incomplete! Help wanted!
Please finish this page using the corresponding Old Wiki article.
Go to Contribution guidelines for more information.
This function creates a gunshot particle effect.
Syntax
fxAddGunshot ( )Code Examples
client
This example adds a gunshot with sparks in front of your face.
addCommandHandler("sshot", function() local x, y, z = getElementPosition(localPlayer) fxAddGunshot(x, y+0.5, z+0.5, 0, 0, 0, true)end)