Player::reportCrime: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
(yay)
Line 1: Line 1:
PLAYER::REPORT_CRIME(PLAYER::PLAYER_ID(), 37, PLAYER::GET_WANTED_LEVEL_THRESHOLD(1));<br><br>From am_armybase.ysc.c4:<br><br>PLAYER::REPORT_CRIME(PLAYER::PLAYER_ID(4), 36, PLAYER::GET_WANTED_LEVEL_THRESHOLD(4));<br><br>-----<br><br>This was taken from the GTAV.exe v1.334. The function is called sub_140592CE8. For a full decompilation of the function, see here: pastebin.com/09qSMsN7 <br><br>-----<br>crimeType:<br>1: Firearms possession<br>2: Person running a red light ('5-0-5')<br>3: Reckless driver<br>4: Speeding vehicle (a '5-10')<br>5: Traffic violation (a '5-0-5')<br>6: Motorcycle rider without a helmet<br>7: Vehicle theft (a '5-0-3')<br>8: Grand Theft Auto<br>9: ???<br>10: ???<br>11: Assault on a civilian (a '2-40')<br>12: Assault on an officer<br>13: Assault with a deadly weapon (a '2-45')<br>14: Officer shot (a '2-45')<br>15: Pedestrian struck by a vehicle<br>16: Officer struck by a vehicle<br>17: Helicopter down (an 'AC'?)<br>18: Civilian on fire (a '2-40')<br>19: Officer set on fire (a '10-99')<br>20: Car on fire<br>21: Air unit down (an 'AC'?)<br>22: An explosion (a '9-96')<br>23: A stabbing (a '2-45') (also something else I couldn't understand)<br>24: Officer stabbed (also something else I couldn't understand)<br>25: Attack on a vehicle ('MDV'?)<br>26: Damage to property<br>27: Suspect threatening officer with a firearm<br>28: Shots fired<br>29: ???<br>30: ???<br>31: ???<br>32: ???<br>33: ???<br>34: A '2-45'<br>35: ???<br>36: A '9-25'<br>37: ???<br>38: ???<br>39: ???<br>40: ???<br>41: ???<br>42: ???<br>43: Possible disturbance<br>44: Civilian in need of assistance<br>45: ???<br>46: ???
PLAYER::REPORT_CRIME(PLAYER::PLAYER_ID(), 37, PLAYER::GET_WANTED_LEVEL_THRESHOLD(1));<br><br>From am_armybase.ysc.c4:<br><br>PLAYER::REPORT_CRIME(PLAYER::PLAYER_ID(4), 36, PLAYER::GET_WANTED_LEVEL_THRESHOLD(4));<br><br>-----<br><br>This was taken from the GTAV.exe v1.334. The function is called sub_140592CE8. For a full decompilation of the function, see here: pastebin.com/09qSMsN7 <br><br>-----<br>crimeType:<br>1: Firearms possession<br>2: Person running a red light ('5-0-5')<br>3: Reckless driver<br>4: Speeding vehicle (a '5-10')<br>5: Traffic violation (a '5-0-5')<br>6: Motorcycle rider without a helmet<br>7: Vehicle theft (a '5-0-3')<br>8: Grand Theft Auto<br>9: ???<br>10: ???<br>11: Assault on a civilian (a '2-40')<br>12: Assault on an officer<br>13: Assault with a deadly weapon (a '2-45')<br>14: Officer shot (a '2-45')<br>15: Pedestrian struck by a vehicle<br>16: Officer struck by a vehicle<br>17: Helicopter down (an 'AC'?)<br>18: Civilian on fire (a '2-40')<br>19: Officer set on fire (a '10-99')<br>20: Car on fire<br>21: Air unit down (an 'AC'?)<br>22: An explosion (a '9-96')<br>23: A stabbing (a '2-45') (also something else I couldn't understand)<br>24: Officer stabbed (also something else I couldn't understand)<br>25: Attack on a vehicle ('MDV'?)<br>26: Damage to property<br>27: Suspect threatening officer with a firearm<br>28: Shots fired<br>29: ???<br>30: ???<br>31: ???<br>32: ???<br>33: ???<br>34: A '2-45'<br>35: ???<br>36: A '9-25'<br>37: ???<br>38: ???<br>39: ???<br>40: ???<br>41: ???<br>42: ???<br>43: Possible disturbance<br>44: Civilian in need of assistance<br>45: ???<br>46: ???
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">player.reportCrime(crimeTypewantedLvlThresh);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.player.reportCrime(crimeTypewantedLvlThresh);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''crimeType:''' int
*'''crimeType:''' int
Line 9: Line 9:
==Example==
==Example==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
todo
// todo
</syntaxhighlight>
</syntaxhighlight>
==See also==
==See also==
{{Player_function_c}}
{{Player_s_function_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Revision as of 21:31, 6 May 2017

PLAYER::REPORT_CRIME(PLAYER::PLAYER_ID(), 37, PLAYER::GET_WANTED_LEVEL_THRESHOLD(1));

From am_armybase.ysc.c4:

PLAYER::REPORT_CRIME(PLAYER::PLAYER_ID(4), 36, PLAYER::GET_WANTED_LEVEL_THRESHOLD(4));

-----

This was taken from the GTAV.exe v1.334. The function is called sub_140592CE8. For a full decompilation of the function, see here: pastebin.com/09qSMsN7

-----
crimeType:
1: Firearms possession
2: Person running a red light ('5-0-5')
3: Reckless driver
4: Speeding vehicle (a '5-10')
5: Traffic violation (a '5-0-5')
6: Motorcycle rider without a helmet
7: Vehicle theft (a '5-0-3')
8: Grand Theft Auto
9: ???
10: ???
11: Assault on a civilian (a '2-40')
12: Assault on an officer
13: Assault with a deadly weapon (a '2-45')
14: Officer shot (a '2-45')
15: Pedestrian struck by a vehicle
16: Officer struck by a vehicle
17: Helicopter down (an 'AC'?)
18: Civilian on fire (a '2-40')
19: Officer set on fire (a '10-99')
20: Car on fire
21: Air unit down (an 'AC'?)
22: An explosion (a '9-96')
23: A stabbing (a '2-45') (also something else I couldn't understand)
24: Officer stabbed (also something else I couldn't understand)
25: Attack on a vehicle ('MDV'?)
26: Damage to property
27: Suspect threatening officer with a firearm
28: Shots fired
29: ???
30: ???
31: ???
32: ???
33: ???
34: A '2-45'
35: ???
36: A '9-25'
37: ???
38: ???
39: ???
40: ???
41: ???
42: ???
43: Possible disturbance
44: Civilian in need of assistance
45: ???
46: ???

Syntax

mp.game.player.reportCrime(crimeTypewantedLvlThresh);

Required Arguments

  • crimeType: int
  • wantedLvlThresh: int

Return value

  • Undefined

Example

// todo

See also