Additional Script Functionality Commands

Script Commands

These are all the commands added by this hack.

As of 1.18.1, these commands all support taking 1/0 or true/false for boolean arguments.

CON Commands

Command Name Description  Initial Release
AddVehicleCharacter Add a character to the car.

1.19

AddVehicleCharacterSuppressionCharacter Set the character(s) whose suppression status will cause this character to not be in the vehicle. 1.19
SetConditionalParameter Set parameters on a car depending on various conditions. 1.18
SetVehicleCharacterAnimation Set the animation that the character will use in the car. 1.19
SetVehicleCharacterJumpOut Set whether or not the character will jump out when the vehicle is destroyed. 1.19
SetVehicleCharacterScale Set the scale of the character. 1.19
SetVehicleCharacterVisible Set whether or not the character is visible. 1.19

MFK Commands

Level Commands

Command Name Description  Initial Release
SetCarChangeHitAndRunChange Set the amount the Hit & Run meter will change when swapping to a different vehicle. 1.18
SetHitAndRunDecayHitAndRun Set the amount the Hit & Run meter will decay each second while the player is in a Hit & Run. 1.18
SetHitAndRunFine Set the amount of coins the player will be fined if they are caught in a Hit & Run. 1.18

Mission Commands

Command Name Description  Initial Release
SetHUDMapDrawable Set the current HUD Map drawable when the mission starts. 1.18
SetPedsEnabled Set whether or not pedestrians are enabled. 1.19.1
SetParkedCarsEnabled Set whether or not parked cars are enabled. 1.19.1

Stage Commands

Command Name Description  Initial Release
AddStageVehicleCharacter Add a character to a stage vehicle or the player's car for a stage. 1.19
DisableTrigger Disable a locator's trigger(s) for a stage. 1.18
RemoveStageVehicleCharacter Remove a character from a stage vehicle or the player's car upon reaching the stage. 1.19
ResetStageHitAndRun Resets the Hit & Run meter when reaching a stage, erasing all existing chase cars. 1.18
SetNoHitAndRunMusicForStage Disables the game switching to the Hit & Run music during a Hit & Run for the stage. Instead, the mission's music will continue. 1.18
SetStageAllowMissionCancel Set whether or not the player is allowed to restart or cancel the mission during the stage. 1.18.1
SetStageCarChangeHitAndRunChange Set the amount the Hit & Run meter will change when swapping to a different vehicle for the stage. 1.18
SetStageCharacterModel Set the character's model for the stage. 1.18
SetStageHitAndRun Set the value of the Hit & Run meter when starting the stage. 1.18
SetStageHitAndRunDecay Set the Hit & Run decay rate for a stage. 1.18
SetStageHitAndRunDecayHitAndRun Set the Hit & Run decay rate while in a Hit & Run for a stage. 1.18
SetStageHitAndRunDecayInterior Set the Hit & Run decay rate while in an interior for a stage. 1.18
SetStageHitAndRunFine Set the Hit & Run fine for a stage. 1.18
SetStageNumChaseCars Set the amount of chase cars that will spawn during a Hit & Run this stage. 1.18
SetStagePayout Sets an amount of coins to give the player when they complete the stage. 1.18
SetStageVehicleAllowSeatSlide Sets whether or not the stage vehicle allows seat slide. 1.19
SetStageVehicleCharacterAnimation Set the animation that the character will use in the stage vehicle. 1.19
SetStageVehicleCharacterJumpOut Set whether or not the character will jump out of the vehicle when it's destroyed. 1.19
SetStageVehicleCharacterScale Set the scale of the character in the stage vehicle. 1.19
SetStageVehicleCharacterVisible Set if the character is visible in the vehicle. 1.19
SetStageVehicleNoDestroyedJumpOut Sets whether or not the driver of the vehicle will jump out when it's destroyed. 1.18.1
SetStageVehicleReset Sets whether or not an AI car will automatically reset onto the road if it's off for too long in certain objective types. 1.18

Objective Commands


Command Name Description  Initial Release
AddObjTargetModel Specify the name of a model that will advance the objective. 1.18
SetObjCameraName / SetObjMulticontName Set the name of the camera and multi controller to use for the objective. 1.18
SetObjCanSkip Set whether or not the objective can be skipped. 1.18
SetObjDecay Set the decay delay and decay rate for the objective. 1.18
SetObjExplosion Set an explosion to use for the objective. 1.18
SetObjMessageIndex Set a message index for the objective. 1.18
SetObjNoLetterbox Set whether or not there will be letterboxing during the objective. 1.18
SetObjSound Set a sound for the condition. 1.18
SetObjSpeedKMH Set the speed required for the objective. 1.18
SetObjThreshold Set a threshold for the objective. 1.18
SetObjTotal Set the total amount of times the condition must be failed for the player to fail the mission. 1.18
SetObjTrigger Specify a locator whose triggers will be used for the objective. 1.18
SetObjUseCameraPosition Set whether or not the game should use the camera's position for spawning traffic and pedestrians during the objective. 1.18

Condition Commands

Command Name Description  Initial Release
AddCondTargetModel Specify the name of a model that fails the condition. 1.18
SetCondDelay Specify a delay after the condition is failed for the mission to end. 1.18
SetCondDisplay Set how the condition is displayed to the user. 1.18
SetCondMessageIndex Set a message index for the condition. 1.18
SetCondSound Set a sound for the condition. 1.18
SetCondSpeedRangeKMH Sets a speed range for the condition. 1.18
SetCondThreshold Set a threshold for the condition. 1.18
SetCondTotal Set the total amount of times the condition must be failed for the player to fail the mission. 1.18
SetCondTrigger Specify a locator whose triggers will cause the condition to fail. 1.18

Modified Commands

These are script commands already in the game that are modified by the hack to have expanded functionality.

Command Name Description Initial Release
SetDurationTime Modified to support milliseconds. 1.18
SetHitAndRunDecayInterior Modified to work. By default, this command is broken since it is mapped to the wrong function in the game's code. 1.18

 

Back to top