ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. getProjectileType

Function

getProjectileType

ServerProjectilesIdentical to MTA:SA

Returns the projectile type (weapon ID).

Syntax

int getProjectileType(projectile theProjectile)

Arguments

theProjectileprojectile
The projectile.

Returns

The type, or false.

Example

addEventHandler("onProjectileCreation", root, function(creator)
    outputDebugString("Pocisk rodzaju " .. getProjectileType(source))
end)

See also