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

Function

setPedFightingStyle

ServerPedsIdentical to MTA:SA

Sets a ped's melee fighting style (4 = standard, 5 = boxing, 6 = kung fu, 7 = knee to head, 15 = grab and kick, 16 = elbows). A player gets this style in their game (as after gym training). For NPCs the value is stored and returned by getPedFightingStyle. Values outside 4-16 are rejected.

Syntax

bool setPedFightingStyle(ped ped, int value)

Arguments

pedped
A player or an NPC.
valueint
Fighting style 4-16.

Returns

true on success.

Example

setPedFightingStyle(player, 5)

See also