Difference between revisions of "0237"

From GTAMods Wiki
Jump to navigation Jump to search
(Gang IDs)
m
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{I|Create a more detailed example}}
 
 
{{OpCode
 
{{OpCode
| ini        = 0237=4, %1h%  %2h% %3h% %4h%
+
| games      = {{Icon|t}}
| description = Sets the weapons of a specific gang
+
| command    = SET_GANG_WEAPONS
| p1          = Gang ID
+
| description = Sets the [[weapon]]s of the [[gang]]
| p2          = Weapon number
+
| syntax1    = {{Icon|3}} {{Icon|VC}} 0237: set_gang [''int1''] primary_weapon_to [''int2''] secondary_weapon_to [''int3'']
| p3          = Weapon number
+
| syntax2    = {{Icon|SA}} 0237: set_gang [''int1''] weapons_to [''int2''] [''int3''] [''int4'']
| p4          = Weapon number
+
| p1t        = [''int1'']
| game        = [[GTA 3]], [[Vice City]], [[San Andreas]]
+
| p1d        = [[Gang|Gang id]]
 +
| p2t        = [''int2'']
 +
| p2d        = [[Weapon#Lists of weapons|Weapon type 1]]
 +
| p3t        = [''int3'']
 +
| p3d        = Weapon type 2
 +
| p4t        = [''int4'']
 +
| p4d        = Weapon type 3
 +
| native      = [[SET_GANG_WEAPONS]]
 
}}
 
}}
This opcode sets the weapons of a specific gang.
 
  
== Sanny Builder example ==
+
This opcode sets the weapons of the gang. If a gang's weapons have not been set by this opcode, the game will use the default hardcoded weapons as the gang's weapons. The value set with this opcode is saved in [[Saves (GTA 3)#Block 12: Gangs|block 12 of the save file]] in GTA III, [[Saves (GTA VC)#Block 13: Gangs|block 13]] in Vice City, and [[Saves (GTA SA)#Block 11: Gangs|block 11]] in San Andreas.
  
<source lang="scm">0237: set_gang 1 weapons_to 24 29 4</source>
+
== Keywords ==
 
+
set, weapon, gang
==Gang IDs==
 
 
 
{| {{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
 

Latest revision as of 06:08, 8 July 2017

GTA III Vice City San Andreas SET_GANG_WEAPONS


Description
Sets the weapons of the 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 id
[int2]
Weapon type 1
[int3]
Weapon type 2
[int4]
Weapon type 3
Native analog
SET_GANG_WEAPONS

This opcode sets the weapons of the gang. If a gang's weapons have not been set by this opcode, the game will use the default hardcoded weapons as the gang's weapons. The value set with this opcode is saved in block 12 of the save file in GTA III, block 13 in Vice City, and block 11 in San Andreas.

Keywords

set, weapon, gang