getProjectileType | Multi Theft Auto: Wiki Skip to content

getProjectileType

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 returns the type of the specified projectile.

Syntax

getProjectileType ( )

Code Examples

client
function projectileCreation()
local theType = getProjectileType(source)
outputChatBox("A projectile was created! It's type: "..theType)
end
addEventHandler("onClientProjectileCreation", getRootElement(), projectileCreation)