Difference between revisions of "0237"

From GTAMods Wiki
Jump to navigation Jump to search
(Gang IDs)
Line 1: Line 1:
{{I|Create a more detailed example}}
+
{{Icon|trilogy}}
{{OpCode
+
<hr />
| ini        = 0237=4, %1h%  %2h% %3h% %4h%
+
'''Description'''
| description = Sets the weapons of a specific gang
+
: Sets the weapons of the specified gang
| p1          = Gang ID
+
'''Syntax'''
| p2          = Weapon number
+
: {{Icon|3}} {{Icon|VC}} 0237: set_gang [''int1''] primary_weapon_to [''int2''] secondary_weapon_to [''int3'']
| p3          = Weapon number
+
: {{Icon|SA}} 0237: set_gang [''int1''] weapons_to [''int2''] [''int3''] [''int4'']
| p4          = Weapon number
+
'''Parameter'''
| game        = [[GTA 3]], [[Vice City]], [[San Andreas]]
+
: [''int1'']
}}
+
:: [[Gang|Gang number]]
This opcode sets the weapons of a specific gang.
+
: [''int2'']
 +
:: [[Weapon#Lists of Weapons|Weapon number 1]]
 +
: [''int3'']
 +
:: Weapon number 2
 +
: [''int4'']
 +
:: Weapon number 3
  
== Sanny Builder example ==
+
This opcode sets the weapons of a specific gang. If a gang's weapons are not set by this opcode, the game will use the default hardcoded gang weapons.
  
<source lang="scm">0237: set_gang 1 weapons_to 24 29 4</source>
+
== Keywords ==
 +
set, weapon, gang
  
==Gang IDs==
+
[[Category:OpCodes]]
 
 
{| {{prettytable}}
 
!
 
! colspan="1"| GTA III
 
! colspan="1"| Vice City
 
! colspan="1"| San Andreas
 
|-
 
| 0
 
| Mafia
 
| Cubans
 
| Ballas
 
|-
 
| 1
 
| Triads
 
| Haitians
 
| Grove Street Families
 
|-
 
| 2 
 
| Diablos
 
| Street wannabees
 
| Los Santos Vagos
 
|-
 
| 3 
 
| Yakuza
 
| Columbians
 
| San Fierro Rifa
 
|-
 
| 4 
 
| Yardies
 
| Renta Cops
 
| Da Nang Boys
 
|-
 
| 5 
 
| Columbians
 
| Bikers
 
| Mafia
 
|-
 
| 6 
 
| South Side Hoods
 
| Vercetti
 
| Mountain Cloud Triad
 
|-
 
| 7
 
| -
 
| Golfers
 
| Varrio Los Aztecas
 
|-
 
| 8
 
| -
 
| Army
 
| (unused)
 
|-
 
| 9
 
| -
 
| -
 
| (unused)
 
|}
 
 
 
==Keywords==
 
weapons, gang
 

Revision as of 02:58, 23 November 2011

GTA III Vice City San Andreas


Description

Sets the weapons of the specified gang

Syntax

GTA III Vice City 0237: set_gang [int1] primary_weapon_to [int2] secondary_weapon_to [int3]
San Andreas 0237: set_gang [int1] weapons_to [int2] [int3] [int4]

Parameter

[int1]
Gang number
[int2]
Weapon number 1
[int3]
Weapon number 2
[int4]
Weapon number 3

This opcode sets the weapons of a specific gang. If a gang's weapons are not set by this opcode, the game will use the default hardcoded gang weapons.

Keywords

set, weapon, gang