Gameplay::enableDispatchService: Difference between revisions
(yay) |
(yay) |
||
| Line 1: | Line 1: | ||
dispatchType:<br>Police Automobile = 1<br>Police Helicopter = 2<br>Swat Helicopter = 3<br>Fire Department = 4<br>Swat Automobile = 5<br>Ambulance Department = 6<br>Gangs = 7<br>Police Riders = 8<br>Police Vehicle Request = 9<br>Police Road Block = 10<br>Police Boat = 11<br>Army Vehicle = 12<br><br>By making toggle false it disables the dispatch (for 7, it will disable gangs.)<br><br>curious if this is what they used when you toggled on and off cops in a GTA IV freemode you hosted. Sad they got rid of the option to make a private session without cops.<br>Also on x360 seems with or without neverWanted on, setting these to all false in SP of course doesn't seem to work. I would understand getting stars, but cops are still dispatched and combat you. | dispatchType:<br>Police Automobile = 1<br>Police Helicopter = 2<br>Swat Helicopter = 3<br>Fire Department = 4<br>Swat Automobile = 5<br>Ambulance Department = 6<br>Gangs = 7<br>Police Riders = 8<br>Police Vehicle Request = 9<br>Police Road Block = 10<br>Police Boat = 11<br>Army Vehicle = 12<br><br>By making toggle false it disables the dispatch (for 7, it will disable gangs.)<br><br>curious if this is what they used when you toggled on and off cops in a GTA IV freemode you hosted. Sad they got rid of the option to make a private session without cops.<br>Also on x360 seems with or without neverWanted on, setting these to all false in SP of course doesn't seem to work. I would understand getting stars, but cops are still dispatched and combat you. | ||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="javascript">gameplay.enableDispatchService(dispatchType, toggle);</syntaxhighlight> | <syntaxhighlight lang="javascript">mp.game.gameplay.enableDispatchService(dispatchType, toggle);</syntaxhighlight> | ||
=== Required Arguments === | === Required Arguments === | ||
*'''dispatchType:''' int | *'''dispatchType:''' int | ||
| Line 9: | Line 9: | ||
==Example== | ==Example== | ||
<syntaxhighlight lang="javascript"> | <syntaxhighlight lang="javascript"> | ||
todo | // todo | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==See also== | ==See also== | ||
{{ | {{Gameplay_s_function_c}} | ||
[[Category:Clientside API]] | [[Category:Clientside API]] | ||
[[Category:TODO: Example]] | [[Category:TODO: Example]] | ||
Revision as of 21:12, 6 May 2017
dispatchType:
Police Automobile = 1
Police Helicopter = 2
Swat Helicopter = 3
Fire Department = 4
Swat Automobile = 5
Ambulance Department = 6
Gangs = 7
Police Riders = 8
Police Vehicle Request = 9
Police Road Block = 10
Police Boat = 11
Army Vehicle = 12
By making toggle false it disables the dispatch (for 7, it will disable gangs.)
curious if this is what they used when you toggled on and off cops in a GTA IV freemode you hosted. Sad they got rid of the option to make a private session without cops.
Also on x360 seems with or without neverWanted on, setting these to all false in SP of course doesn't seem to work. I would understand getting stars, but cops are still dispatched and combat you.
Syntax
mp.game.gameplay.enableDispatchService(dispatchType, toggle);
Required Arguments
- dispatchType: int
- toggle: Boolean
Return value
- Undefined
Example
// todo