martinjk / mafia-definitive-edition-scripthook Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
Hello! can you fix the scripthook for mafia definitive edition?
Here's a list of globals if anyone finds that useful it's not all of them https://gist.githubusercontent.com/bugproof/ef7821d4392549745fbe4f1fd0244b75/raw/50cdb4e2b8c2daebdb72158b240e77b2f766d786/gistfile1.txt
I'm afraid dumping original arguments is not possible but maybe it's possible to extract original lua scripts somehow from *.sds files when sds unpacker is available so we can get better understanding how specific functions work.
I'm gonnna update it with more complete dump later (with userdata types)
This is a not issue! Just info about lua classes and api's for wiki. Maybe someone will find this useful for coding lua mods :)
game.ats:GetRetryCount
game.ats:Signal
game.audio:CreateAudioArgs
game.audio:Play
game.audio:PlaySimpleEvent
game.audio:SetHideoutState
game.audio:SetMissionState
game.battle:ActiveCombatantSlotsCount
game.battle:AssaultRoleBlockingTime
game.battle:AssaultRoleFarAwayTimeMax
game.battle:DangerLimitToSuppressed
game.battle:DangerLimitToSuppressedOpenspace
game.battle:FlankingRoleBlockingTime
game.battle:LOSLostTimeToAssaultApproach
game.battle:MaxAssaultApproachRoleCnt
game.battle:MaxAssaultRoleCnt
game.battle:MaxDangerAssault
game.battle:MaxDangerFlanking
game.battle:MaxFlankingRoleCnt
game.battle:RegisterGlobalTrespassZone
game.battle:RegisterHERDGroupingArea
game.battle:RegisterHERDGroupingNavBox
game.battle:RegisterHERDGroupingScope
game.battle:ResetBattleRoleAssignConfig
game.battle:ResetTargetPriorities
game.battle:SendEnemiesIntoBattleSearch
game.battle:SetArchetypeCountLimit
game.battle:SetTargetPriority
game.battle:SetTrespassingState
game.battle:SuppressedTime
game.battle:UnregisterGlobalTrespassZone
game.battle:UnregisterHERDGroupingArea
game.battle:UnregisterHERDGroupingNavBox
game.battle:UnregisterHERDGroupingScope
game.cameramanager:GetPlayerCamera
game.cameramanager:GetPlayerMainCamera
game.capture:AddCaptureItem
game.capture:RegisterObjective
game.capture:RegisterWalkieTalkieCallback
game.capture:UnregisterObjective
game.database:GetAttribute
game.database:GetBoolAttribute
game.database:GetDatabase
game.database:GetFloatAttribute
game.database:GetIntAttribute
game.database:GetSection
game.database:GetStringAttribute
game.datastore:DelVariable
game.datastore:Dump
game.datastore:GetVariable
game.datastore:GetVariableType
game.datastore:SetVariable
game.datastore:VariableExists
game.delayed:CreateDelayedSynchroObject
game.detector:RegisterDistanceDetectionEntity
game.detector:RegisterDistanceDetectionPos
game.detector:RegisterEventDistanceEnt
game.detector:RegisterEventDistancePos
game.detector:UnregisterDistanceDetection
game.detector:UnregisterEventDistance
game.director:ApplySpawnPointActivityCooldown
game.director:ApplySpawnPointGlobalCooldown
game.director:CityGetActiveName
game.director:CityTransfer
game.director:CreateCustomRepelRadius
game.director:DebugRespawnActivityInstance
game.director:DeleteCustomRepelRadius
game.director:DisableActivitySpawner
game.director:DoesSpawnPointExist
game.director:EnableActivitySpawner
game.director:GameOver
game.director:GetActivitySpawnerInstancesCount
game.director:GetCurrentAct
game.director:GetCurrentSubAct
game.director:GetDistrict
game.director:GetSpawnPointObject
game.director:GetSpawnPointPosition
game.director:GetSpawnPointsSelectedForActivity
game.director:GetSpawnPointsWithLoadedInstances
game.director:IsActivitySpawnerEnabled
game.director:IsIdValid
game.director:IsSpawnPointActivityCooldownActive
game.director:IsSpawnPointGlobalCooldownActive
game.director:IsSpawnPointSelected
game.director:ObjectiveActivate
game.director:ObjectiveAddToGPSGroup
game.director:ObjectiveCreateGPSGroup
game.director:ObjectiveDeactivate
game.director:ObjectiveDestroyGPSGroup
game.director:ObjectiveIconHide
game.director:ObjectiveIconShow
game.director:ObjectiveIsActive
game.director:ObjectiveRemoveFromGPSGroup
game.director:ObjectiveSetGPSGroupStatus
game.director:QuestDebugForceAvailable
game.director:QuestGetCityName
game.director:QuestGetCustomState
game.director:QuestGetCustomStateByIndex
game.director:QuestGetCustomStatesCount
game.director:QuestGetLastFinishedOutcomeId
game.director:QuestGetTimeSinceLastFinish
game.director:QuestIsActive
game.director:QuestIsAvailable
game.director:QuestIsDefined
game.director:QuestIsInActiveCity
game.director:QuestNoteActivate
game.director:QuestNoteDeactivate
game.director:QuestNoteIsActive
game.director:QuestPersistentSetFinished
game.director:QuestRegularIsActive
game.director:QuestRegularIsLoaded
game.director:QuestRegularSetActive
game.director:QuestRegularSetFinished
game.director:QuestSetActive
game.director:QuestSetAvailable
game.director:QuestSetCustomState
game.director:QuestSetFinished
game.director:QuestSetInactive
game.director:QuestSetInstanceFinished
game.director:QuestSetLocked
game.director:QuestWasFinished
game.director:QuestWasFinishedWithOutcome
game.director:RegisterActivitySpawnPointCallback
game.director:RegisterDistrictChangeCallback
game.director:ResetEnabledActivitySpawners
game.director:SetActivitySpawnerInstancesCount
game.director:SetCurrentAct
game.director:SetCurrentSubAct
game.director:TestSpawnPointTag
game.director:ToggleSpawnSystemDebugDisplay
game.director:UnregisterActivitySpawnPointCallback
game.director:UnregisterDistrictChangeCallback
game.entitywrapper:GetEntityByGUID
game.entitywrapper:GetEntityByName
game.entitywrapper:GetSceneObjectByName
game.game:AddActorActions
game.game:AddSoundPerceptionVolume
game.game:AddTranslocatorExclusionZone
game.game:AddTranslocatorFreezeZone
game.game:AddTranslocatorInclusionZone
game.game:AddWeaponEffect
game.game:AllowTransientGatorSpawn
game.game:AwardDLCMedal
game.game:AwardMedal
game.game:BroadcastHearScriptEvent
game.game:CancelGameUpHoldRequest
game.game:ClearWeaponsInRadius
game.game:CountStatisticItem
game.game:CreateBlocker
game.game:CreateCleanEntity
game.game:CreateScriptActorAction
game.game:CreateScriptActorActionBox
game.game:DbgActionIsEnabled
game.game:DbgActionToogle
game.game:DbgToolActorInfo
game.game:DebugSetEditableVar
game.game:DirectlyReportScriptEvent
game.game:DispatchWorldEdgeGator
game.game:EnableAutoAimCrashObjects
game.game:EnableAutoAimHumans
game.game:EnableDLCFeature
game.game:EnableNewWater
game.game:ForceDifferentVoices
game.game:GetActivePlayer
game.game:GetAmmoCategory
game.game:GetCorpseCountAroundPos
game.game:GetCurrentCounter
game.game:GetCurrentGameDifficulty
game.game:GetCurrentGERS
game.game:GetDifficultyStreak
game.game:GetDLCNamesByType
game.game:GetGlobalGameObjects
game.game:GetHashNameString
game.game:GetIs3DMenu
game.game:GetIsMeleeWeapon
game.game:GetItemIDFromName
game.game:GetLoadedSaveId
game.game:GetLoadedSaveType
game.game:GetMissionTime
game.game:GetPlatform
game.game:GetPlayerCanSkipRides
game.game:GetPlayerManualShifting
game.game:GetPlayersEnemies
game.game:GetRestrictedZoneManager
game.game:GetWeaponNameFromID
game.game:GotoPositionWithLookAt
game.game:HerbalismGetLastBatchSaleAmount
game.game:HerbalismGetLevel
game.game:HerbalismGetUpgradeLevel
game.game:HerbalismGrowhouseGetMaxProfit
game.game:HerbalismGrowhouseGetMinProfit
game.game:HerbalismGrowhouseGetPrice
game.game:HerbalismGrowhouseGetProgress
game.game:HerbalismGrowhouseGetStrainName
game.game:HerbalismGrowhouseIsUnlocked
game.game:HerbalismGrowhouseUnlock
game.game:HerbalismLevelUpAvailable
game.game:HerbalismSetLevel
game.game:IsAchievementTrackingEnabled
game.game:IsDeadHumanInside
game.game:IsDLCFeatureEnabled
game.game:IsModifiedGameTime
game.game:IsPointInView
game.game:LoadSds
game.game:LodingFinishedNotify
game.game:MassActivate
game.game:MassDeactivate
game.game:ModifyGameTime
game.game:MoveAgentsToVolume
game.game:NewAIObjectParams
game.game:NewBattleDestination
game.game:NewBattleFakeTarget
game.game:OverrideMaxEventReactionDistFromPlayer
game.game:PlayCutscene
game.game:PlayMultipointSpeech
game.game:PlayRumbleEffect
game.game:PostAIEvent
game.game:ProjectPointToScreen
game.game:RegisterBlanketEvent
game.game:RegisterEnterTrespassZoneCallback
game.game:RemoveSoundPerceptionVolume
game.game:RemoveTranslocatorExclusionZone
game.game:RemoveTranslocatorFreezeZone
game.game:RemoveTranslocatorInclusionZone
game.game:RequestGameUpHold
game.game:SendTelemetryEvent
game.game:SetCurrentStoryId
game.game:SetDisabledActorActions
game.game:SetRenderPerformancePreset
game.game:SetWaterSimulation
game.game:SetWaterTemplate
game.game:SetWaterTransition
game.game:SetWaterVisibility
game.game:ShowLeaderboard
game.game:SkipLoadingSavingIndicatorDelay
game.game:StartBroadcastSeeScriptEvent
game.game:StartBroadcastTimedSeeScriptEvent
game.game:StartCounter
game.game:StartListeningToGERS
game.game:StartStopSlowMotionEffects
game.game:StopBroadcastSeeScriptEvent
game.game:StopBroadcastTimedSeeScriptEvent
game.game:StopCounter
game.game:StopListeningToGERS
game.game:StopOverrideMaxEventReactionDistFromPlayer
game.game:StopWeaponEffect
game.game:StringTablesHaveString
game.game:SwitchEnemyAlwaysOnRadarMode
game.game:SwitchPoliceAlwaysOnRadarMode
game.game:ThrowProjectileWeapon
game.game:ToHashName
game.game:TurnOffTheLights
game.game:UnloadSds
game.game:UnregisterBlanketEvent
game.game:UnregisterEnterTrespassZoneCallback
game.game:UpdatePresenceMessage
game.game:UpdatePresenceParam
game.game:WaitForTranslocator
game.game:ZombieShotAtEntityStart
game.game:ZombieShotStart
game.game:ZombieShotStop
game.garage:AddGaragePlaces
game.garage:AddVehicle
game.garage:CheatAddCarWithTuning
game.garage:CheatAddVehicle
game.garage:CheatAddVehicles
game.garage:ClearAllGarages
game.garage:GetFreeGaragePlaces
game.garage:GetNumGaragePlaces
game.garage:GetPlayersVehicle
game.garage:HasVehicle
game.garage:IsGarageEmpty
game.garage:LeaveGarage
game.garage:LockCarcyclopediaVehicleByName
game.garage:OpenCarcyclopediaMenu
game.garage:OpenGarageMenu
game.garage:RemoveVehicle
game.garage:RemoveVehicleByName
game.garage:SpawnCarcyclopediaVehicle
game.garage:SpawnGarageVehicle
game.garage:UnlockCarcyclopediaVehicleByName
game.garage:UnlockCarcyclopediaVehiclesAll
game.garage:UnlockCarcyclopediaVehiclesBySeason
game.gfx:CreateRestriction
game.gfx:DeleteRestriction
game.gfx:EnablePostProcess
game.gfx:GetCurrentWeatherSetName
game.gfx:GetDryUpSpeedMult
game.gfx:GetMaterialParameter
game.gfx:GetTime
game.gfx:GetTimeFlowSpeed
game.gfx:IsPostProcessEnabled
game.gfx:IsWeatherCondition
game.gfx:RegisterWeatherConditionChanged
game.gfx:RegisterWeatherTimeFrameEvent
game.gfx:RemoveTimeLimit
game.gfx:ResetPostprocessSetOverride
game.gfx:SetDryUpSpeedMult
game.gfx:SetMaterialParameter
game.gfx:SetMaterialTexture
game.gfx:SetPostprocessSetOverride
game.gfx:SetSkyboxRotationAngle
game.gfx:SetTime
game.gfx:SetTimeFlowSpeed
game.gfx:SetTimeLimit
game.gfx:SetWeatherSet
game.gfx:UnregisterWeatherCallback
game.gfx:UseDepthTestForObjectHighlightMask
game.hud:AcceptMissionRestart
game.hud:ActionButtonsShow
game.hud:AddEntityIndicator
game.hud:AddEntityIndicatorBone
game.hud:AddJournalEntry
game.hud:AddQuest
game.hud:AddQuestChapter
game.hud:AddQuestNavId
game.hud:AddQuestObjective
game.hud:AddQuestObjectiveNavId
game.hud:AddQuestObjectiveWithoutNotification
game.hud:AddQuestSubObjective
game.hud:AddQuestSubObjectiveNavId
game.hud:AddRowDistrictLegend
game.hud:AddSecondaryObjective
game.hud:AddServiceTargetingEntity
game.hud:AreDebugCoordsEnabled
game.hud:AttachDebugOnEntity
game.hud:AttachMovie
game.hud:BackMirrorShow
game.hud:BuildParamString
game.hud:CanShowTutorial
game.hud:CenterIndicatorsShow
game.hud:ChangeTextOnEntity
game.hud:ClearCustomRadarRange
game.hud:ClearDistrictLegend
game.hud:ClearRacingOverlayMap
game.hud:CloseBarCustomizationMenu
game.hud:CloseMovie
game.hud:CloseTutorial
game.hud:CreateHealthBar
game.hud:CreateHint
game.hud:CreateHTMLText
game.hud:DamageGaugeShow
game.hud:DarkPlaceIndicatorShow
game.hud:DebugHint
game.hud:DestroyHint
game.hud:EffectAlcoholDrunk
game.hud:EffectAlcoholHit
game.hud:EffectAlcoholLimits
game.hud:EnableAlertBannerForTrespassing
game.hud:EnableDebugCoords
game.hud:EnterServiceTargeting
game.hud:ExitServiceTargeting
game.hud:FadeHudElement
game.hud:FaderFadeIn
game.hud:FaderFadeInContext
game.hud:FaderFadeOut
game.hud:FaderFadeOutContext
game.hud:FaderFadeOutExt
game.hud:FaderFadeOutMute
game.hud:FinishSecondaryObjective
game.hud:FinishShowingObjectInBackMirror
game.hud:ForceSubtitlesUp
game.hud:GetControllerPreset
game.hud:GetInteractCameraDummy
game.hud:GetLastSelectedObjective
game.hud:GetLocalizedString
game.hud:GetProgressEntityIndicator
game.hud:GetScreenAspectRatio
game.hud:GetScreenResolution
game.hud:GetSelectedObjective
game.hud:GetTutorialVisibility
game.hud:HelpHintHide
game.hud:HelpHintShowQuick
game.hud:HideArea
game.hud:HideBarCustomizationLoadingScreen
game.hud:HideHint
game.hud:HideMissionComplete
game.hud:HideMissionExit
game.hud:HideMissionExitWithCancel
game.hud:HideMissionOptIn
game.hud:HideMissionRestart
game.hud:HideRaceExitScreen
game.hud:HideRaceFinishedScreen
game.hud:HideRaceStartScreen
game.hud:HideRacketOptIn
game.hud:HideRacketOptOut
game.hud:HideTitleCard
game.hud:HideVehicleDamageTimer
game.hud:HideWarning
game.hud:InfoAreaShow
game.hud:InventoryShow
game.hud:IsBarCategoryUnlocked
game.hud:IsBarUpgradePurchased
game.hud:IsBarUpgradeUnlocked
game.hud:IsFadedIn
game.hud:IsFadedOut
game.hud:IsFadingIn
game.hud:IsFadingOut
game.hud:IsLoadingScreenUp
game.hud:IsObjectiveGaugeShowing
game.hud:IsPointInAnyWiretapZone
game.hud:IsQuestObjectiveSelected
game.hud:IsQuestSubObjectiveSelected
game.hud:IsTutorialDisplayed
game.hud:MessageAreaShow
game.hud:MessageShowQuick
game.hud:MissionHUDShow
game.hud:MoneyShow
game.hud:ObjectiveShow
game.hud:ObjectiveTimerShow
game.hud:OpenBarCustomizationMenu
game.hud:OpenCustomizeCarMenu
game.hud:OpenMovie
game.hud:OpenScotchTutorial
game.hud:OpenScriptedTutorial
game.hud:OpenTutorial
game.hud:PoliceRelationSet
game.hud:PoliceWantedSet
game.hud:QueueHintEvent
game.hud:QuitToMainMenu
game.hud:RacingCheckpoint
game.hud:RacingClear
game.hud:RacingGetTime
game.hud:RacingLapFinished
game.hud:RacingShowHud
game.hud:RacingStart
game.hud:RacingStop
game.hud:RacingVisualPause
game.hud:RadarShow
game.hud:RegisterScriptedMenuEvent
game.hud:RegisterWiretapZone
game.hud:RemoveDebugFromEntity
game.hud:RemoveEntityIndicator
game.hud:RemoveEntityIndicatorBone
game.hud:RemoveQuest
game.hud:RemoveQuestChapter
game.hud:RemoveQuestObjective
game.hud:RemoveQuestSubObjective
game.hud:RemoveSecondaryObjective
game.hud:RemoveServiceTargetingEntity
game.hud:RequestBarMenuFadein
game.hud:RespectShow
game.hud:SelectQuestObjective
game.hud:SelectQuestSubObjective
game.hud:SendMessageMovie
game.hud:SetAbortMissionStringId
game.hud:SetBarCustomizationMenuInputDisabled
game.hud:SetCustomRadarRange
game.hud:SetDamageGaugeValue
game.hud:SetDistrictCollectibleCount
game.hud:SetEntityIndicatorOcclusion
game.hud:SetEntityIndicatorOffscreenType
game.hud:SetForceIgnoreInventoryCollapse
game.hud:SetMinDistanceEntityIndicator
game.hud:SetMinDistanceEntityIndicatorBone
game.hud:SetMovieFadeInDistances
game.hud:SetMovieFadeOutDistances
game.hud:SetMovieFlag
game.hud:SetNumRelayComponents
game.hud:SetOnlyScriptedTutorialsEnabled
game.hud:SetPauseMapMenuEnabled
game.hud:SetProgressEntityIndicator
game.hud:SetProgressEntityIndicatorBone
game.hud:SetProgressSpeedEntityIndicator
game.hud:SetProgressTargetSpeedEntityIndicator
game.hud:SetQuestCount
game.hud:SetQuestObjectiveCount
game.hud:SetQuestObjectiveOptions
game.hud:SetQuestObjectiveShowAllSubs
game.hud:SetQuestObjectiveState
game.hud:SetQuestSubObjectiveOptions
game.hud:SetQuestSubObjectiveState
game.hud:SetQuestType
game.hud:SetRacingLapsAndCheckpoints
game.hud:SetRacingOverlayMap
game.hud:SetRadarFlashState
game.hud:SetShouldFireRaceExit
game.hud:SetTailingGaugeValue
game.hud:SetTemperatureGaugeValue
game.hud:SetTextEntityIndicator
game.hud:SetTimerValue
game.hud:SetTitleDescriptionDistrictLegend
game.hud:SetUIXMargin
game.hud:SetUIYMargin
game.hud:SetVehicleDamageTimerDestruction
game.hud:SetVehicleDamageTimerTime
game.hud:SetVehicleDeliveryCategoryIndex
game.hud:Show
game.hud:ShowArea
game.hud:ShowBarCustomizationLoadingScreen
game.hud:ShowDebugInformationEvent
game.hud:ShowDistrictLegend
game.hud:ShowFinalSitdownChoice
game.hud:ShowHint
game.hud:ShowLowHealthFX
game.hud:ShowMissionComplete
game.hud:ShowMissionCompleteScotch
game.hud:ShowMissionExit
game.hud:ShowMissionExitSync
game.hud:ShowMissionExitWithCancel
game.hud:ShowMissionOptIn
game.hud:ShowMissionRestart
game.hud:ShowObjectInBackMirror
game.hud:ShowPlayerRaceTimeDifference
game.hud:ShowQuestStartBanner
game.hud:ShowRaceExitScreen
game.hud:ShowRaceFinishedScreen
game.hud:ShowRaceMessageWithTime
game.hud:ShowRaceStartScreen
game.hud:ShowRacketOptIn
game.hud:ShowRacketOptOut
game.hud:ShowTitleCard
game.hud:ShowUncustomizableCarErrorDialog
game.hud:ShowVehicleDamageTimer
game.hud:ShowVehicleDamageTimerDestructionBar
game.hud:ShowWarning
game.hud:ShowWarningStringId
game.hud:SpeedometerShow
game.hud:StartCountDown
game.hud:StartCredits
game.hud:StartCreditsSync
game.hud:SubtitlesShow
game.hud:TailingGaugeShow
game.hud:TemperatureGaugeShow
game.hud:TimerGetDiffCoef
game.hud:TimerGetTime
game.hud:TimerIsRunning
game.hud:TimerSet
game.hud:TimerShow
game.hud:TimerStart
game.hud:TimerStop
game.hud:ToggleSaveLoadSpinner
game.hud:UnlockBarCategory
game.hud:UnlockBarUpgrade
game.hud:UnregisterScriptedMenuEvent
game.hud:UpdateDeliverableVehicle
game.hud:UpdateQuest
game.hud:UpdateQuestChapter
game.hud:UpdateQuestObjective
game.hud:UpdateQuestSubObjective
game.hud:UpdateRolloverDateAndImage
game.hud:UpdateSecondaryObjective
game.hud:UpdateSecondaryObjectiveIcon
game.hud:UpdateService
game.hud:UpdateSimpleObjective
game.navigation:AddDistrictActivity
game.navigation:AddHideoutIntel
game.navigation:ChangeIconTargetToEntityDirect
game.navigation:ChangeIconTargetToPos
game.navigation:ClearSelectedIcon
game.navigation:DisableGPSBlockedRoads
game.navigation:DisableGPSCustomPath
game.navigation:EnableGPSBlockedRoads
game.navigation:EnableGPSCustomPath
game.navigation:EnableIconOverrideIndicatorPosition
game.navigation:GetIdByEntityName
game.navigation:GetIdByScriptWrapper
game.navigation:IsIconSelected
game.navigation:LoadCustomMap
game.navigation:RegisterArea
game.navigation:RegisterCircle
game.navigation:RegisterCircleEntity
game.navigation:RegisterCircleEntityRGB
game.navigation:RegisterCircleRGB
game.navigation:RegisterCoverageDirect
game.navigation:RegisterCoverageEntity
game.navigation:RegisterCoveragePos
game.navigation:RegisterDistrictPos
game.navigation:RegisterHideoutContactObjectiveDirect
game.navigation:RegisterHideoutContactObjectiveEntity
game.navigation:RegisterHideoutContactObjectivePos
game.navigation:RegisterHideoutEntity
game.navigation:RegisterHideoutEntityDirect
game.navigation:RegisterHideoutObjective
game.navigation:RegisterHideoutPos
game.navigation:RegisterHighDamageObjectiveDirect
game.navigation:RegisterHighDamageObjectiveEntity
game.navigation:RegisterHighDamageObjectivePos
game.navigation:RegisterHumanEntity
game.navigation:RegisterHumanEntityDirect
game.navigation:RegisterIconEntity
game.navigation:RegisterIconEntityDirect
game.navigation:RegisterIconPos
game.navigation:RegisterObjective
game.navigation:RegisterObjectiveEntityDirect
game.navigation:RegisterObjectiveIcon
game.navigation:RegisterObjectiveIconEntityDirect
game.navigation:RegisterObjectiveIconPos
game.navigation:RegisterObjectivePos
game.navigation:RegisterOWAHideoutDirect
game.navigation:RegisterOWAHideoutEntity
game.navigation:RegisterOWAHideoutPos
game.navigation:RegisterOWAPersistentCharacterDirect
game.navigation:RegisterOWAPersistentCharacterEntity
game.navigation:RegisterOWAPersistentCharacterPos
game.navigation:RegisterPassionActivityDirect
game.navigation:RegisterPassionActivityEntity
game.navigation:RegisterPassionActivityPos
game.navigation:RegisterPersistentCharacterDirect
game.navigation:RegisterPersistentCharacterEntity
game.navigation:RegisterPersistentCharacterPos
game.navigation:RegisterStashHouseDirect
game.navigation:RegisterStashHouseEntity
game.navigation:RegisterStashHousePos
game.navigation:RegisterVehicleDirect
game.navigation:RegisterVehicleEntity
game.navigation:RequestRadarMap
game.navigation:SelectIcon
game.navigation:SetCoverageState
game.navigation:SetDamageValueHundreds
game.navigation:SetDifficultyState
game.navigation:SetDistrictActivityState
game.navigation:SetDistrictState
game.navigation:SetFilterOnlyBountyIcons
game.navigation:SetFilterOnlyRaceIcons
game.navigation:SetGrowHouseIconData
game.navigation:SetHideoutContactNotifyState
game.navigation:SetHideoutCurrentValue
game.navigation:SetHideoutEarnValues
game.navigation:SetHideoutIntelState
game.navigation:SetHideoutIsInLockedState
game.navigation:SetHideoutShouldShowMapIcons
game.navigation:SetHideoutStartingValue
game.navigation:SetHideoutState
game.navigation:SetIconFakeGPSPositionOnEntity
game.navigation:SetIconFarVisibility
game.navigation:SetIconGPSEnabledByNavId
game.navigation:SetIconMapVisibilityByEntity
game.navigation:SetIconMapVisibilityByNavId
game.navigation:SetIconOverrideIndicatorPosition
game.navigation:SetIconRadarVisibilityByEntity
game.navigation:SetIconRadarVisibilityByNavId
game.navigation:SetIconRiskRewardDamage
game.navigation:SetIconShowByEntity
game.navigation:SetIconTextByEntity
game.navigation:SetIconTextByNavId
game.navigation:SetIndicatorHideRange
game.navigation:SetNotifyState
game.navigation:SetPersistentCharacterEarn
game.navigation:SetPersistentCharacterKickback
game.navigation:SetPersistentCharacterState
game.navigation:SetPopupProperties
game.navigation:SetRaceMedal
game.navigation:SetRacePersonalBest
game.navigation:SetRacingIconData
game.navigation:SetStashHouseState
game.navigation:ShowIconDuringBounty
game.navigation:ShowIconDuringRaces
game.navigation:UnloadCustomMap
game.navigation:UnregisterId
game.navigation:UnrequestRadarMap
game.outfits:FreeRideStart
game.outfits:GetCurrentOutfit
game.outfits:IsLocked
game.outfits:SetCurrentOutfit
game.outfits:UnlockAll
game.outfits:UnlockOutfit
game.perchars:DebugDecreaseLoyalty
game.perchars:DebugIncreaseLoyalty
game.perchars:DebugSetLocation
game.perchars:DebugSetLoyalty
game.perchars:DisableQuestMemberMode
game.perchars:EnableQuestMemberMode
game.perchars:GetLoyalty
game.perchars:GetState
game.perchars:SetBackstory
game.perchars:SetState
game.perchars:SetStatus
game.physics:CleanObjectsInArea
game.physics:CleanObjectsInSphere
game.physics:GetActorInScreenCenter
game.physics:GetCollisionPointBelow
game.physics:IsCleanRequestStillInProgress
game.physics:MakeCollLayers
game.physics:NewTriggerVolumeListener
game.physics:StartCollisionQuery
game.pipcamera:ActivatePiPCamera
game.pipcamera:CreatePiPCamera
game.pipcamera:CreatePiPCameraDynamic
game.pipcamera:CreatePiPCameraStatic
game.pipcamera:DeactivatePiPCamera
game.pipcamera:DestroyPiPCamera
game.police:AreOffencesDisabled
game.police:ClampEscalationLevel
game.police:DespawnRoadBlock
game.police:Disable
game.police:DisableOffencesDistrict
game.police:DisableOffencesDistrictAllowPolice
game.police:DisableOffencesDistrictPermanently
game.police:DisableOffencesGlobal
game.police:DisableOffencesGlobalAllowPolice
game.police:DisableOffencesTemp
game.police:DisablePoliceSquealers
game.police:Enable
game.police:ForceMinEscalationLevel
game.police:GetActiveZones
game.police:GetZoneInfo
game.police:OverridePersistentPoliceSet
game.police:PersistentPolicePreventSpawningFromPos
game.police:PersistentPolicePreventSpawningFromSource
game.police:PersistentPoliceStartSpawningFromPos
game.police:PersistentPoliceStartSpawningFromSource
game.police:PersistentPoliceStopSpawningFromPos
game.police:PersistentPoliceStopSpawningFromSource
game.police:PreventDispatchSpeech
game.police:PreventPoliceSpawning
game.police:PreventZonesDecay
game.police:RegisterForPoliceEvent
game.police:RegisterPreventCivilSquealerPhonesZone
game.police:RemoveAllSquealersDespawnProtection
game.police:RemoveOverridePersistentPoliceSet
game.police:RemoveSquealerDespawnProtection
game.police:RequestDispatchSpeech
game.police:SetDispatchSpeechPreset2D
game.police:SetPersistentPoliceGlobalDensityModifier
game.police:SpawnRoadBlockWithCrew
game.police:SquealerCallPolice
game.police:SquealerCallSquealers
game.police:SquealerGetLastOffencePos
game.police:StartSquealerDespawnProtection
game.police:UnregisterForPoliceEvent
game.police:UnregisterPreventCivilSquealerPhonesZone
game.police:ZoneCreate
game.police:ZoneDecay
game.police:ZoneDecayAll
game.police:ZoneDecayRed
game.police:ZoneDelete
game.police:ZoneDeleteAll
game.police:ZoneQuery
game.racemanager:CrossedCheckPoint
game.racemanager:GetDistance
game.racemanager:GetDistances
game.racemanager:GetPosition
game.racemanager:GetPositionTotal
game.racemanager:IsEntityRegistered
game.racemanager:RegisterEntity
game.racemanager:RegisterScriptEvent
game.racemanager:SetCheckPoints
game.racemanager:SetIsRacing
game.racemanager:SetPath
game.racemanager:SetTeleportAllowed
game.racemanager:UnregisterEntity
game.racemanager:UnregisterScriptEvent
game.radio:GetStation
game.radio:IsOn
game.radio:NumAvailableStations
game.radio:SelectStation
game.radio:SetOn
game.radio:StartTransition
game.safehouse:RegisterEnterCallback
game.safehouse:RegisterExitCallback
game.safehouse:UnregisterEnterCallback
game.safehouse:UnregisterExitCallback
game.savesystem:ClearRespawnPosDir
game.savesystem:ClearRespawnTrafficSeason
game.savesystem:DebugSave
game.savesystem:EnableSaveLogic
game.savesystem:FreeRoamRetry
game.savesystem:IsInReplayOrTestDrive
game.savesystem:IsRetryPossible
game.savesystem:RequestCheckpointSave
game.savesystem:RequestFreeroamSave
game.savesystem:RequestMissionSave
game.savesystem:Retry
game.savesystem:SetRespawnDefaultSpawnProfile
game.savesystem:SetRespawnOverrideSpawnProfile
game.savesystem:SetRespawnPosDir
game.savesystem:SetRespawnTrafficSeason
game.sds:GetSyncObjectForLoadSDS
game.sds:GetSyncObjectForUnloadSDS
game.sds:IsSDSLoaded
game.servicevalidation:StartValidatingDiversionTarget
game.servicevalidation:StartValidatingDriveByTarget
game.shotmgr:CreateExplosion
game.shotmgr:CreateScriptExplosion
game.shotmgr:CreateShots
game.shotmgr:ScriptSetExplosionsEnabled
game.skipscriptscene:BeginSkipableScene
game.skipscriptscene:EndSkipableScene
game.squealer:DisablePhoneBoothsEvaluation
game.squealer:GetImportantGameObjects
game.squealer:GetSquealerDestinationTarget
game.squealer:OnGangsterSquealerAssignedDestination
game.streaming:RequestLoadCollisionsInRadius
game.streaming:RequestUnloadAllButBoat
game.streaming:UnrequestLoad
game.streammap:ChangeScenario
game.streammap:GetSyncObjectForSuspend
game.streammap:IsTestScene
game.streammap:Resume
game.tail:CreateTailEntity
game.tail:ReleaseTailEntity
game.tail:SetHintEscape
game.tail:SetHintFail
game.tail:SetHintStart
game.tail:SetHintSuccess
game.traffic:ActivateLastPlayersCar
game.traffic:AddSuppressionToVolume
game.traffic:BanishEntity
game.traffic:BlockSpawnersInArea
game.traffic:BlockSpawnersInSphere
game.traffic:ClearHumanSafeThreshold
game.traffic:CloseSeason
game.traffic:DbgRegulateTraffic
game.traffic:DbgSetHumanSpawnRanges
game.traffic:DbgSetVehicleSpawnRanges
game.traffic:DespawnEntity
game.traffic:DespawnEntityImmediately
game.traffic:DespawnPlayerCarImmediately
game.traffic:FindNearestSpawnedVehicle
game.traffic:FinishScenario
game.traffic:ForceDespawnClosingVehicleSlots
game.traffic:GetActiveTailEntity
game.traffic:GetClosestPointOnRoad
game.traffic:GetCurrentSeasonID
game.traffic:GetDLCVehicleModelNames
game.traffic:GetGlobalCarDensityMultiplier
game.traffic:GetIsAmbientTrafficOn
game.traffic:GetLastObtainedPlayerCar
game.traffic:GetLastPlayerCar
game.traffic:GetLastPlayerVehicle
game.traffic:GetNearestFoundSpawnedEntity
game.traffic:GetObtainedEntity
game.traffic:GetObtainedSceneObject
game.traffic:GetRestrictedZoneCarsIntersection
game.traffic:GetSpawnCarArriveMissingDist
game.traffic:GetSpawnCarArrivePos
game.traffic:GetSpawnedEntity
game.traffic:GetSpawnedSceneObject
game.traffic:IsQueryMarkedForDespawn
game.traffic:ObtainCar
game.traffic:ObtainCarWithCrew
game.traffic:ObtainNewPlayerCar
game.traffic:ObtainSpecificBoat
game.traffic:ObtainSpecificBoatWithCrew
game.traffic:ObtainSpecificCar
game.traffic:ObtainTrain
game.traffic:OpenSeason
game.traffic:PathFindEnableMiddlePoint
game.traffic:PathFindReset
game.traffic:Populate
game.traffic:RestoreCarCustomizationState
game.traffic:ReturnNearestFoundSpawnedVehicle
game.traffic:SetEnableAmbientTrafficSpawning
game.traffic:SetForceCarRealPhysics
game.traffic:SetHumanSafeThresholdMB
game.traffic:SetMaxHumanElements
game.traffic:SetMaxVehicleElements
game.traffic:SetTrainDensity
game.traffic:SpawnBoat
game.traffic:SpawnBoatArrive
game.traffic:SpawnCar
game.traffic:SpawnCarArrive
game.traffic:SpawnCarArrivePosition
game.traffic:SpawnCarArriveSO
game.traffic:SpawnCarConvoy
game.traffic:SpawnTrain
game.traffic:StartFootWaveInScenario
game.traffic:StartHuntScenario
game.traffic:SwitchAllowRadarZoom
game.traffic:SwitchGenerators
game.traffic:SwitchRoad
game.traffic:TestCustApply
game.traffic:TestCustItem
game.traffic:TestCustRevert
game.traffic:TestCustStart
game.traffic:TestPerfStats
game.traffic:UnlockCarCustomizationItem
game.traffic:UnspawnPlayersCars
game.videocapture:CancelHighlight
game.videocapture:StartHighlight
game.videocapture:StopHighlight
I'm looking to potentially expand Freeride to be more of a sandbox type game, with taxi missions, mobsters, like the original, etc. Is this something I could accomplish with ScriptHook? I've been look at the API and globals and I'm having a hard time trying to figure out what's possible.
Hello,
Certain functions in this script hook do not work at all, but I am certain they do certainly exist by looking at the binary data of extracted LUA scripts which are LUA 5.1 by the way. Is there any reason for this? I'm not sure if they need to be in some sort of special thread as I see threads mentioned a lot. I'm talking about HUD functions such as CreateHTMLText to display custom text, or spawning vehicles and NPCs. And is there no sort of "Tick" function? Is it all key binds? There is also no sort of documentation of functions and their parameters. This script hook has big potential and many modders just need more information and access. Thanks for your work but please we need some more information.
Hi,
whenever I try to launch the ScriptHook (the game is running), the game just crashes. Unfortunately, even logs don't tell anything understandable.
Using the EPIC games version, if that matters.
Administrator rights for game and/or Scripthook seems to not have any effect.
Steps:
Launch Mafia through exe (I have disabled the original launcher), load into the game (in my case Free ride, launch ScriptHook exe, the game crashes.
Game exe: version 1.0.0.1
Installed scripts: None - initially tried NoClip, but after crashes, I have just removed any script to check just scripthook load
Scripthook log:
M1DEScriptHook::M1DEScriptHook
PluginSystem::LoadPlugins
M1DEScriptHook::StartThreads
LuaStateManager::StartThread
M1DEScriptHook::mainThread
LuaFunctions::LuaFunctions
LuaFunctions::LuaFunctions Game is not ready, script engine not initialized, retry
LuaFunctions::LoadPointers
m_pMainGameScriptMachine (146312da0)
lua_pcall (14495c6e9)
lua_tostring (140e4dd50)
lua_isstring (142fa4545)
lua_loadBuffer (144919a90)
lua_newthread (14490f570)
lua_pushcclosure (144911a10)
lua_setfield (140e4db10)
lua_setglobal (143d76530)
LuaFunctions::LoadPointers Finished
LuaStateManager::StateChanged
LuaFunctions::Setup
LuaFunctions::Setup::<lambda_3f731b9485bcd7f28ee7d759df59c8b8>::operator ()
Any idea, what is going on?
Thank you and have a nice day!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.