MISC
165 natives, 78 of them described.
- ABSFAbsf
Checks the absolute value for an float, any negatives will be returned as positive.
- ABSIAbsi
Checks the absolute value for an int, any negatives will be returned as positive.
- ACOSAcos
Caluclates the arccos.
- ACTIVATE_CHEATActivateCheat
Activate a cheat.
- ACTIVATE_NETWORK_SETTINGS_MENUActivateNetworkSettingsMenu
Not described yet
- ACTIVATE_REPLAY_MENUActivateReplayMenu
Not described yet
- ACTIVATE_SAVE_MENUActivateSaveMenu
Not described yet
- ADD_HOSPITAL_RESTARTAddHospitalRestart
Adds a coord where the player will be restarted after he has been killed.
- ADD_POLICE_RESTARTAddPoliceRestart
Adds a coord where the player will be restarted after he has been arrested.
- ADD_STRING_TO_NEWS_SCROLLBARAddStringToNewsScrollbar
Add texts to a news scrollbar.
- ADD_STUNT_JUMPAddStuntJump
Adds a stunt jump area in the map.
- ALLOW_ONE_TIME_ONLY_COMMANDS_TO_RUNAllowOneTimeOnlyCommandsToRun
Not described yet
- ALLOW_STUNT_JUMPS_TO_TRIGGERAllowStuntJumpsToTrigger
Sets if the stunt jumps are active.
- ALLOW_THIS_SCRIPT_TO_BE_PAUSEDAllowThisScriptToBePaused
If this command is called with FALSE then this script will not be paused if another script calls PAUSE_GAME.
- ARE_CREDITS_FINISHEDAreCreditsFinished
Not described yet
- ASCII_INT_TO_STRINGAsciiIntToString
Not described yet
- ASINAsin
Caluclates the arcsin.
- ATANAtan
Caluclates the arctan.
- ATAN2Atan2
Not described yet
- ATTACH_PARACHUTE_MODEL_TO_PLAYERAttachParachuteModelToPlayer
Not described yet
- CAN_START_MISSION_PASSED_TUNECanStartMissionPassedTune
Will return TRUE if autosave is switched off in frontend or the saving spinning disc help message is being displayed.
- CANCEL_OVERRIDE_RESTARTCancelOverrideRestart
Not described yet
- CHEAT_HAPPENED_RECENTLYCheatHappenedRecently
Not described yet
- CLEAR_ANGLED_AREA_OF_CARSClearAngledAreaOfCars
Clears the non axis aligned area of all all non-mission cars.
- CLEAR_AREAClearArea
Clears all non-mission cars and chars within the defined sphere.
- CLEAR_AREA_OF_CARSClearAreaOfCars
Clears all non-mission cars within the defined sphere.
- CLEAR_AREA_OF_CHARSClearAreaOfChars
Clears all non-mission chars within the defined sphere.
- CLEAR_AREA_OF_COPSClearAreaOfCops
Clears all non-mission cops within the defined sphere.
- CLEAR_AREA_OF_OBJECTSClearAreaOfObjects
Clears all non-mission objects within the defined sphere.
- CLEAR_BITClearBit
Not described yet
- CLEAR_NEWS_SCROLLBARClearNewsScrollbar
Clears the text that is currently displayed on the news scrollbar.
- CLEAR_UP_TRIP_SKIPClearUpTripSkip
Not described yet
- COMPARE_STRINGCompareString
Not described yet
- DEACTIVATE_NETWORK_SETTINGS_MENUDeactivateNetworkSettingsMenu
Not described yet
- DID_SAVE_COMPLETE_SUCCESSFULLYDidSaveCompleteSuccessfully
Checks that the save completed.
- DO_AUTO_SAVEDoAutoSave
Runs an auto save.
- ENABLE_SAVE_HOUSEEnableSaveHouse
Not described yet
- ENABLE_XBOX_SCREEN_SAVEREnableXboxScreenSaver
This native function doesn't work (nullsub).
- FAIL_KILL_FRENZYFailKillFrenzy
Not described yet
- FIRE_SINGLE_BULLETFireSingleBullet
Fires an instant hit bullet between the two points.
- FLUSH_ALL_OUT_OF_DATE_RADAR_BLIPS_FROM_MISSION_CLEANUP_LISTFlushAllOutOfDateRadarBlipsFromMissionCleanupList
Not described yet
- FORCE_POPULATION_INITForcePopulationInit
Not described yet
- FORCE_WEATHERForceWeather
Not described yet
- FORCE_WEATHER_NOWForceWeatherNow
Not described yet
- FORCE_WINDForceWind
Not described yet
- GENERATE_RANDOM_FLOATGenerateRandomFloat
Not described yet
- GENERATE_RANDOM_FLOAT_IN_RANGEGenerateRandomFloatInRange
Gets a random float from the range passed in.
- GENERATE_RANDOM_INTGenerateRandomInt
Not described yet
- GENERATE_RANDOM_INT_IN_RANGEGenerateRandomIntInRange
Gets a random int from the range passed in.
- GET_ANGLE_BETWEEN_2D_VECTORSGetAngleBetween2dVectors
Not described yet
- GET_BITS_IN_RANGEGetBitsInRange
Not described yet
- GET_CURRENT_EPISODEGetCurrentEpisode
Return the current active episode.
- GET_CURRENT_LANGUAGEGetCurrentLanguage
Gets the current language settings.
- GET_CURRENT_STACK_SIZEGetCurrentStackSize
Gets the size of the calling scripts current stack size.
- GET_CURRENT_WEATHERGetCurrentWeather
Not described yet
- GET_CURRENT_WEATHER_FULLGetCurrentWeatherFull
Not described yet
- GET_DISTANCE_BETWEEN_COORDS_2DGetDistanceBetweenCoords2d
Not described yet
- GET_DISTANCE_BETWEEN_COORDS_3DGetDistanceBetweenCoords3d
Not described yet
- GET_EPISODE_NAMEGetEpisodeName
Return an episode name.
- GET_FRAME_TIMEGetFrameTime
Returns the time since the last frame (in seconds).
- GET_GAME_TIMERGetGameTimer
Gets the current game timer in milliseconds.
- GET_GROUND_Z_FOR_3D_COORDGetGroundZFor3dCoord
Trys to store the Z coordinate of the highest ground below the given point.
- GET_HASH_KEYGetHashKey
Creates a hash key for the given string.
- GET_HEADING_FROM_VECTOR_2DGetHeadingFromVector2d
Gets a heading in degrees between the x and y vector components.
- GET_INTERIOR_HEADINGGetInteriorHeading
Gets the offest point returned in world coords.
- GET_IS_AUTOSAVE_OFFGetIsAutosaveOff
Not described yet
- GET_IS_DISPLAYINGSAVEMESSAGEGetIsDisplayingsavemessage
Not described yet
- GET_LINE_HEIGHTGetLineHeight
Not described yet
- GET_MISSION_FLAGGetMissionFlag
Not described yet
- GET_MODEL_DIMENSIONSGetModelDimensions
Gets the dimensions of a model.
- GET_OFFSET_FROM_INTERIOR_IN_WORLD_COORDSGetOffsetFromInteriorInWorldCoords
Not described yet
- GET_OVERRIDE_NO_SPRINTING_ON_PHONE_IN_MULTIPLAYERGetOverrideNoSprintingOnPhoneInMultiplayer
Not described yet
- GET_PROFILE_SETTINGGetProfileSetting
Not described yet
- GET_STRING_WIDTHGetStringWidth
Gets the width of a string.
- GET_STRING_WIDTH_WITH_NUMBERGetStringWidthWithNumber
Gets the width of a string with numbers.
- GET_STRING_WIDTH_WITH_STRINGGetStringWidthWithString
Gets the width of a string inside a string.
- GET_WIDTH_OF_LITERAL_STRINGGetWidthOfLiteralString
Not described yet
- IMPROVE_LOW_PERFORMANCE_MISSION_PER_FRAME_FLAGImproveLowPerformanceMissionPerFrameFlag
Not described yet
- IS_AREA_OCCUPIEDIsAreaOccupied
Checks if an area is ocupied by an entity/entities.
- IS_AUSSIE_VERSIONIsAussieVersion
Returns TRUE when running with the Australian executable.
- IS_AUTO_SAVE_IN_PROGRESSIsAutoSaveInProgress
Checks if an auto save is happening.
- IS_BIT_SETIsBitSet
Not described yet
- IS_BULLET_IN_AREAIsBulletInArea
Checks that a bullet is in the defined sphere.
- IS_BULLET_IN_BOXIsBulletInBox
Checks that a bullet is in the area.
- IS_EPISODE_AVAILABLEIsEpisodeAvailable
Return if episode is available.
- IS_EPISODIC_DISC_BUILDIsEpisodicDiscBuild
Not described yet
- IS_FRONTEND_FADINGIsFrontendFading
Only returns FALSE if no frontend fade is running.
- IS_GERMAN_VERSIONIsGermanVersion
Returns TRUE when running with the German executable - no blood etc.
- IS_INTERIOR_SCENEIsInteriorScene
Checks if the game is in an interior.
- IS_JAPANESE_VERSIONIsJapaneseVersion
Will eventually return TRUE when running with the Japanese executable.
- IS_LIVE_VERSIONIsLiveVersion
Not described yet
- IS_MEMORY_CARD_IN_USEIsMemoryCardInUse
Checks if a memory card is in use.
- IS_MINIGAME_IN_PROGRESSIsMinigameInProgress
Checks if a minigame is in progress.
- IS_PC_VERSIONIsPcVersion
Not described yet
- IS_POINT_OBSCURED_BY_A_MISSION_ENTITYIsPointObscuredByAMissionEntity
Returns TRUE if any mission-created cars, chars or objects are in the defined area.
- IS_PROJECTILE_IN_AREAIsProjectileInArea
Checks that a projectile object is in the area.
- IS_REPLAY_SYSTEM_ACTIVEIsReplaySystemActive
Not described yet
- IS_REPLAY_SYSTEM_SAVINGIsReplaySystemSaving
Not described yet
- IS_SNIPER_BULLET_IN_AREAIsSniperBulletInArea
Checks that a sniper bullet is in a area.
- IS_SNIPER_INVERTEDIsSniperInverted
Checks if the sniper rifle control is inverted.
- IS_STRING_NULLIsStringNull
Checks if the string is NULL.
- IS_THIS_A_MINIGAME_SCRIPTIsThisAMinigameScript
Checks that this is a mingame script.
- IS_XBOX360_VERSIONIsXbox360Version
Returns TRUE when running with the Xbox360 executable.
- LIMIT_ANGLELimitAngle
Not described yet
- OBFUSCATE_STRINGObfuscateString
Not described yet
- OVERRIDE_FREEZE_FLAGSOverrideFreezeFlags
Forces all exterior chars and cars to freeze, regardless of player's position.
- OVERRIDE_NEXT_RESTARTOverrideNextRestart
Not described yet
- PAUSE_GAMEPauseGame
Not described yet
- PICK_RANDOM_WEATHERPickRandomWeather
This native function doesn't work (nullsub).
- POPULATE_NOWPopulateNow
Not described yet
- PROCESS_MISSION_DELETION_LISTProcessMissionDeletionList
Deletes all chars and cars that have previously been added to this list.
- READ_KILL_FRENZY_STATUSReadKillFrenzyStatus
Not described yet
- REGISTER_SAVE_HOUSERegisterSaveHouse
Not described yet
- RELEASE_WEATHERReleaseWeather
Not described yet
- SECUROM_SPOT_CHECK1SecuromSpotCheck1
Not described yet
- SECUROM_SPOT_CHECK2SecuromSpotCheck2
Not described yet
- SECUROM_SPOT_CHECK3SecuromSpotCheck3
Not described yet
- SECUROM_SPOT_CHECK4SecuromSpotCheck4
Not described yet
- SET_BITSetBit
Not described yet
- SET_BITS_IN_RANGESetBitsInRange
Not described yet
- SET_CLEAR_MANIFOLDSSetClearManifolds
Not described yet
- SET_CREDITS_TO_RENDER_BEFORE_FADESetCreditsToRenderBeforeFade
Not described yet
- SET_DEFAULT_GLOBAL_INSTANCE_PRIORITYSetDefaultGlobalInstancePriority
Not described yet
- SET_EXTRA_HOSPITAL_RESTART_POINTSetExtraHospitalRestartPoint
Not described yet
- SET_EXTRA_POLICE_STATION_RESTART_POINTSetExtraPoliceStationRestartPoint
Not described yet
- SET_FADE_IN_AFTER_LOADSetFadeInAfterLoad
Not described yet
- SET_FAKE_WANTED_CIRCLESetFakeWantedCircle
Not described yet
- SET_FAKE_WANTED_LEVELSetFakeWantedLevel
Draws a fake number of wanted stars.
- SET_GLOBAL_INSTANCE_PRIORITYSetGlobalInstancePriority
Not described yet
- SET_GRAVITY_OFFSetGravityOff
Not described yet
- SET_KILLSTREAKSetKillstreak
Not described yet
- SET_MESSAGES_WAITINGSetMessagesWaiting
Displays the envelope icon near radar to say you have unread text messages waiting.
- SET_MINIGAME_IN_PROGRESSSetMinigameInProgress
Informs the game of a mini-games status.
- SET_MISSION_FLAGSetMissionFlag
Sets the script as a mission script.
- SET_OVERRIDE_NO_SPRINTING_ON_PHONE_IN_MULTIPLAYERSetOverrideNoSprintingOnPhoneInMultiplayer
Sets if the player can sprint when on the phone, default is no sprint.
- SET_PHONE_HUD_ITEMSetPhoneHudItem
Displays the relevant hud item.
- SET_PHYS_CCD_HANDLES_ROTATIONSetPhysCcdHandlesRotation
Not described yet
- SET_PLAYER_CONTROL_ON_IN_MISSION_CLEANUPSetPlayerControlOnInMissionCleanup
Sets the player control at the after script has terminated.
- SET_RANDOM_SEEDSetRandomSeed
Creates a random seed.
- SET_SLEEP_MODE_ACTIVESetSleepModeActive
Sets the sleep mode of the mobile.
- SET_THIS_SCRIPT_CAN_REMOVE_BLIPS_CREATED_BY_ANY_SCRIPTSetThisScriptCanRemoveBlipsCreatedByAnyScript
Not described yet
- SET_TIME_SCALESetTimeScale
Sets the time scale of the game to make it run slower.
- SET_UP_TRIP_SKIPSetUpTripSkip
Not described yet
- SET_UP_TRIP_SKIP_AFTER_MISSIONSetUpTripSkipAfterMission
Not described yet
- SET_UP_TRIP_SKIP_FOR_SPECIFIC_VEHICLESetUpTripSkipForSpecificVehicle
Not described yet
- SET_UP_TRIP_SKIP_FOR_VEHICLE_FINISHED_BY_SCRIPTSetUpTripSkipForVehicleFinishedByScript
Not described yet
- SET_UP_TRIP_SKIP_TO_BE_FINISHED_BY_SCRIPTSetUpTripSkipToBeFinishedByScript
Not described yet
- SPOT_CHECK5SpotCheck5
Not described yet
- SPOT_CHECK6SpotCheck6
Not described yet
- SPOT_CHECK7SpotCheck7
Not described yet
- SPOT_CHECK8SpotCheck8
Not described yet
- START_CREDITSStartCredits
Not described yet
- START_KILL_FRENZYStartKillFrenzy
Not described yet
- STOP_CREDITSStopCredits
Not described yet
- STRING_DIFFERENCEStringDifference
Not described yet
- STRING_STRINGStringString
Not described yet
- STRING_TO_INTStringToInt
Converts a string to an int.
- SUPPRESS_FADE_IN_AFTER_DEATH_ARRESTSuppressFadeInAfterDeathArrest
Sets whether the screen fades back in after a death arrest has been intiated.
- TANTan
Caluclates the tan.
- TERMINATE_ALL_SCRIPTS_FOR_NETWORK_GAMETerminateAllScriptsForNetworkGame
Not described yet
- TERMINATE_ALL_SCRIPTS_WITH_THIS_NAMETerminateAllScriptsWithThisName
Terminates all scripts with the specified name.
- THIS_SCRIPT_IS_SAFE_FOR_NETWORK_GAMEThisScriptIsSafeForNetworkGame
Tell the game not to remove this script when TERMINATE_ALL_SCRIPTS_FOR_NETWORK_GAME is called.
- THIS_SCRIPT_SHOULD_BE_SAVEDThisScriptShouldBeSaved
Only scripts that call this command will be stored on the memory card.
- UNOBFUSCATE_STRINGUnobfuscateString
Not described yet
- UNPAUSE_GAMEUnpauseGame
Not described yet
Descriptions by the HappinessMP community, licensed under CC BY-SA 4.0. You may reuse them if you name HappinessMP as the source and share your version under the same license.