Zone::overridePopscheduleVehicleModel: Difference between revisions
(yay) |
(yay) |
||
| Line 1: | Line 1: | ||
Only used once in the decompiled scripts. Seems to be related to scripted vehicle generators.<br><br>Modified example from 'am_imp_exp.c4', line 6406:<br>/* popSchedules[0] = ZONE::GET_ZONE_POPSCHEDULE(ZONE::GET_ZONE_AT_COORDS(891.3, 807.9, 188.1));<br>etc.<br>*/<br>ZONE::OVERRIDE_POPSCHEDULE_VEHICLE_MODEL(popSchedules[index], vehicleHash);<br>STREAMING::REQUEST_MODEL(vehicleHash); | Only used once in the decompiled scripts. Seems to be related to scripted vehicle generators.<br><br>Modified example from 'am_imp_exp.c4', line 6406:<br>/* popSchedules[0] = ZONE::GET_ZONE_POPSCHEDULE(ZONE::GET_ZONE_AT_COORDS(891.3, 807.9, 188.1));<br>etc.<br>*/<br>ZONE::OVERRIDE_POPSCHEDULE_VEHICLE_MODEL(popSchedules[index], vehicleHash);<br>STREAMING::REQUEST_MODEL(vehicleHash); | ||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="javascript">zone.overridePopscheduleVehicleModel(scheduleId, vehicleHash);</syntaxhighlight> | <syntaxhighlight lang="javascript">mp.game.zone.overridePopscheduleVehicleModel(scheduleId, vehicleHash);</syntaxhighlight> | ||
=== Required Arguments === | === Required Arguments === | ||
*'''scheduleId:''' int | *'''scheduleId:''' int | ||
| Line 9: | Line 9: | ||
==Example== | ==Example== | ||
<syntaxhighlight lang="javascript"> | <syntaxhighlight lang="javascript"> | ||
todo | // todo | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==See also== | ==See also== | ||
{{ | {{Zone_s_function_c}} | ||
[[Category:Clientside API]] | [[Category:Clientside API]] | ||
[[Category:TODO: Example]] | [[Category:TODO: Example]] | ||
Revision as of 21:35, 6 May 2017
Only used once in the decompiled scripts. Seems to be related to scripted vehicle generators.
Modified example from 'am_imp_exp.c4', line 6406:
/* popSchedules[0] = ZONE::GET_ZONE_POPSCHEDULE(ZONE::GET_ZONE_AT_COORDS(891.3, 807.9, 188.1));
etc.
*/
ZONE::OVERRIDE_POPSCHEDULE_VEHICLE_MODEL(popSchedules[index], vehicleHash);
STREAMING::REQUEST_MODEL(vehicleHash);
Syntax
mp.game.zone.overridePopscheduleVehicleModel(scheduleId, vehicleHash);
Required Arguments
- scheduleId: int
- vehicleHash: Model hash or name
Return value
- Undefined
Example
// todo