Skip to content

Commit

Permalink
fix(natives): incorrect alias variable order
Browse files Browse the repository at this point in the history
  • Loading branch information
thelindat committed Aug 24, 2023
1 parent 50658cc commit 1d2fdb9
Show file tree
Hide file tree
Showing 36 changed files with 739 additions and 739 deletions.
6 changes: 3 additions & 3 deletions Lua/natives/CFX-NATIVE/CFX.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2487,7 +2487,7 @@ function GetVehicleSteeringScale(vehicle) end
function GetVehicleThrottleOffset(vehicle) end

---@deprecated
GetVehicleThrottleOffset = GetVehicleCurrentAcceleration
GetVehicleCurrentAcceleration = GetVehicleThrottleOffset

---**`CFX` `client`**
---[Native Documentation](https://docs.fivem.net/natives/?_0x998B7FEE)
Expand Down Expand Up @@ -2706,7 +2706,7 @@ function GetVehicleWheelXOffset(vehicle, wheelIndex) end
function GetVehicleWheelYRotation(vehicle, wheelIndex) end

---@deprecated
GetVehicleWheelYRotation = GetVehicleWheelXrot
GetVehicleWheelXrot = GetVehicleWheelYRotation

---**`CFX` `server`**
---[Native Documentation](https://docs.fivem.net/natives/?_0x13D53892)
Expand Down Expand Up @@ -5752,7 +5752,7 @@ function SetVehicleWheelXOffset(vehicle, wheelIndex, offset) end
function SetVehicleWheelYRotation(vehicle, wheelIndex, value) end

---@deprecated
SetVehicleWheelYRotation = SetVehicleWheelXrot
SetVehicleWheelXrot = SetVehicleWheelYRotation

---**`CFX` `client`**
---[Native Documentation](https://docs.fivem.net/natives/?_0x1683E7F0)
Expand Down
34 changes: 17 additions & 17 deletions Lua/natives/GTAV/AUDIO.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function ActivateAudioSlowmoMode(p0) end
function AddEntityToAudioMixGroup(entity, groupName, p2) end

---@deprecated
AddEntityToAudioMixGroup = DynamicMixerRelatedFn
DynamicMixerRelatedFn = AddEntityToAudioMixGroup

---**`AUDIO` `client`**
---[Native Documentation](https://docs.fivem.net/natives/?_0xC5EF963405593646)
Expand Down Expand Up @@ -94,7 +94,7 @@ function BlockDeathJingle(toggle) end
function CancelCurrentPoliceReport() end

---@deprecated
CancelCurrentPoliceReport = DisablePoliceReports
DisablePoliceReports = CancelCurrentPoliceReport

---**`AUDIO` `client`**
---[Native Documentation](https://docs.fivem.net/natives/?_0x5B17A90291133DA5)
Expand Down Expand Up @@ -176,7 +176,7 @@ function DisablePedPainAudio(ped, toggle) end
function DistantCopCarSirens(value) end

---@deprecated
DistantCopCarSirens = ForceAmbientSiren
ForceAmbientSiren = DistantCopCarSirens

---**`AUDIO` `client`**
---[Native Documentation](https://docs.fivem.net/natives/?_0x109697E2FFBAC8A1)
Expand Down Expand Up @@ -230,7 +230,7 @@ function ForceRadioTrackListPosition(radioStation, trackListName, milliseconds)
function ForceVehicleEngineAudio(vehicle, audioName) end

---@deprecated
ForceVehicleEngineAudio = SetVehicleAudio
SetVehicleAudio = ForceVehicleEngineAudio

---**`AUDIO` `client`**
---[Native Documentation](https://docs.fivem.net/natives/?_0xD57AAAE0E2214D11)
Expand Down Expand Up @@ -279,7 +279,7 @@ function GetCurrentRadioTrackName(radioStationName) end
function GetCurrentRadioTrackPlaybackTime(radioStationName) end

---@deprecated
GetCurrentRadioTrackPlaybackTime = GetCurrentRadioStationHash
GetCurrentRadioStationHash = GetCurrentRadioTrackPlaybackTime

---**`AUDIO` `client`**
---[Native Documentation](https://docs.fivem.net/natives/?_0x480357EE890C295A)
Expand Down Expand Up @@ -316,7 +316,7 @@ function GetNetworkIdFromSoundId(soundId) end
function GetNumUnlockedRadioStations() end

---@deprecated
GetNumUnlockedRadioStations = MaxRadioStationIndex
MaxRadioStationIndex = GetNumUnlockedRadioStations

---**`AUDIO` `client`**
---[Native Documentation](https://docs.fivem.net/natives/?_0xA571991A7FE6CCEB)
Expand Down Expand Up @@ -386,7 +386,7 @@ function GetVehicleDefaultHorn(vehicle) end
function GetVehicleDefaultHornIgnoreMods(vehicle) end

---@deprecated
GetVehicleDefaultHornIgnoreMods = GetVehicleHornHash
GetVehicleHornHash = GetVehicleDefaultHornIgnoreMods

---**`AUDIO` `client`**
---[Native Documentation](https://docs.fivem.net/natives/?_0xD53F3A29BCE2580E)
Expand Down Expand Up @@ -550,7 +550,7 @@ function IsMissionCompleteReadyForUi() end
function IsMissionNewsStoryUnlocked(newsStory) end

---@deprecated
IsMissionNewsStoryUnlocked = GetNumberOfPassengerVoiceVariations
GetNumberOfPassengerVoiceVariations = IsMissionNewsStoryUnlocked

---**`AUDIO` `client`**
---[Native Documentation](https://docs.fivem.net/natives/?_0x7497D2CE2C30D24C)
Expand Down Expand Up @@ -591,7 +591,7 @@ function IsPedRingtonePlaying(ped) end
function IsPlayerVehRadioEnable() end

---@deprecated
IsPlayerVehRadioEnable = IsPlayerVehicleRadioEnabled
IsPlayerVehicleRadioEnabled = IsPlayerVehRadioEnable

---**`AUDIO` `client`**
---[Native Documentation](https://docs.fivem.net/natives/?_0x0626A247D2405330)
Expand Down Expand Up @@ -710,7 +710,7 @@ function LoadStreamWithStartOffset(streamName, startOffset, soundSet) end
function LockRadioStation(radioStationName, toggle) end

---@deprecated
LockRadioStation = SetRadioStationDisabled
SetRadioStationDisabled = LockRadioStation

---**`AUDIO` `client`**
---[Native Documentation](https://docs.fivem.net/natives/?_0xFF5E5EA2DCEEACF3)
Expand Down Expand Up @@ -1161,7 +1161,7 @@ function PauseScriptedConversation(p0) end
function PlayAmbientSpeechFromPositionNative(speechName, voiceName, x, y, z, speechParam) end

---@deprecated
PlayAmbientSpeechFromPositionNative = PlayAmbientSpeechAtCoords
PlayAmbientSpeechAtCoords = PlayAmbientSpeechFromPositionNative

---**`AUDIO` `client`**
---[Native Documentation](https://docs.fivem.net/natives/?_0xEE066C7006C49C0A)
Expand Down Expand Up @@ -1276,7 +1276,7 @@ function PlayPain(ped, painID, p1) end
function PlayPedAmbientSpeechAndCloneNative(ped, speechName, speechParam) end

---@deprecated
PlayPedAmbientSpeechAndCloneNative = PlayAmbientSpeech2
PlayAmbientSpeech2 = PlayPedAmbientSpeechAndCloneNative

---**`AUDIO` `client`**
---[Native Documentation](https://docs.fivem.net/natives/?_0x8E04FEDD28D42462)
Expand Down Expand Up @@ -1333,7 +1333,7 @@ PlayPedAmbientSpeechAndCloneNative = PlayAmbientSpeech2
function PlayPedAmbientSpeechNative(ped, speechName, speechParam) end

---@deprecated
PlayPedAmbientSpeechNative = PlayAmbientSpeech1
PlayAmbientSpeech1 = PlayPedAmbientSpeechNative

---**`AUDIO` `client`**
---[Native Documentation](https://docs.fivem.net/natives/?_0x3523634255FC3318)
Expand All @@ -1351,7 +1351,7 @@ PlayPedAmbientSpeechNative = PlayAmbientSpeech1
function PlayPedAmbientSpeechWithVoiceNative(ped, speechName, voiceName, speechParam, p4) end

---@deprecated
PlayPedAmbientSpeechWithVoiceNative = PlayAmbientSpeechWithVoice
PlayAmbientSpeechWithVoice = PlayPedAmbientSpeechWithVoiceNative

---**`AUDIO` `client`**
---[Native Documentation](https://docs.fivem.net/natives/?_0xF9E56683CA8E11A5)
Expand Down Expand Up @@ -1465,7 +1465,7 @@ function PlayStreamFromPed(ped) end
function PlayStreamFromPosition(x, y, z) end

---@deprecated
PlayStreamFromPosition = SpecialFrontendEqual
SpecialFrontendEqual = PlayStreamFromPosition

---**`AUDIO` `client`**
---[Native Documentation](https://docs.fivem.net/natives/?_0xB70374A758007DFA)
Expand Down Expand Up @@ -2247,7 +2247,7 @@ function SetUserRadioControlEnabled(toggle) end
function SetVariableOnCutsceneAudio(variableName, value) end

---@deprecated
SetVariableOnCutsceneAudio = GetPlayerHeadsetSoundAlternate
GetPlayerHeadsetSoundAlternate = SetVariableOnCutsceneAudio

---**`AUDIO` `client`**
---[Native Documentation](https://docs.fivem.net/natives/?_0xAD6B3148A78AE9B6)
Expand Down Expand Up @@ -2484,7 +2484,7 @@ function StopCurrentPlayingAmbientSpeech(ped) end
function StopCurrentPlayingSpeech(ped) end

---@deprecated
StopCurrentPlayingSpeech = SetPedMute
SetPedMute = StopCurrentPlayingSpeech

---**`AUDIO` `client`**
---[Native Documentation](https://docs.fivem.net/natives/?_0x806058BBDC136E06)
Expand Down
36 changes: 18 additions & 18 deletions Lua/natives/GTAV/CAM.lua
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ function GetDebugCamera() end
function GetFinalRenderedCamCoord() end

---@deprecated
GetFinalRenderedCamCoord = GetGameplayCamCoords
GetGameplayCamCoords = GetFinalRenderedCamCoord

---**`CAM` `client`**
---[Native Documentation](https://docs.fivem.net/natives/?_0xDFC8CBC606FDB0FC)
Expand All @@ -490,7 +490,7 @@ GetFinalRenderedCamCoord = GetGameplayCamCoords
function GetFinalRenderedCamFarClip() end

---@deprecated
GetFinalRenderedCamFarClip = GetGameplayCamFarClip
GetGameplayCamFarClip = GetFinalRenderedCamFarClip

---**`CAM` `client`**
---[Native Documentation](https://docs.fivem.net/natives/?_0x9780F32BCAF72431)
Expand All @@ -499,7 +499,7 @@ GetFinalRenderedCamFarClip = GetGameplayCamFarClip
function GetFinalRenderedCamFarDof() end

---@deprecated
GetFinalRenderedCamFarDof = GetGameplayCamFarDof
GetGameplayCamFarDof = GetFinalRenderedCamFarDof

---**`CAM` `client`**
---[Native Documentation](https://docs.fivem.net/natives/?_0x80EC114669DAEFF4)
Expand All @@ -514,7 +514,7 @@ function GetFinalRenderedCamFov() end
function GetFinalRenderedCamMotionBlurStrength() end

---@deprecated
GetFinalRenderedCamMotionBlurStrength = GetGameplayCamFarClip_2
GetGameplayCamFarClip_2 = GetFinalRenderedCamMotionBlurStrength

---**`CAM` `client`**
---[Native Documentation](https://docs.fivem.net/natives/?_0xD0082607100D7193)
Expand All @@ -523,7 +523,7 @@ GetFinalRenderedCamMotionBlurStrength = GetGameplayCamFarClip_2
function GetFinalRenderedCamNearClip() end

---@deprecated
GetFinalRenderedCamNearClip = GetGameplayCamNearClip
GetGameplayCamNearClip = GetFinalRenderedCamNearClip

---**`CAM` `client`**
---[Native Documentation](https://docs.fivem.net/natives/?_0xA03502FC581F7D9B)
Expand All @@ -532,7 +532,7 @@ GetFinalRenderedCamNearClip = GetGameplayCamNearClip
function GetFinalRenderedCamNearDof() end

---@deprecated
GetFinalRenderedCamNearDof = GetGameplayCamNearDof
GetGameplayCamNearDof = GetFinalRenderedCamNearDof

---**`CAM` `client`**
---[Native Documentation](https://docs.fivem.net/natives/?_0x5B4E4C817FCC2DFB)
Expand All @@ -542,7 +542,7 @@ GetFinalRenderedCamNearDof = GetGameplayCamNearDof
function GetFinalRenderedCamRot(rotationOrder) end

---@deprecated
GetFinalRenderedCamRot = GetGameplayCamRot_2
GetGameplayCamRot_2 = GetFinalRenderedCamRot

---**`CAM` `client`**
---[Native Documentation](https://docs.fivem.net/natives/?_0x5F35F6732C3FBBA0)
Expand All @@ -566,7 +566,7 @@ function GetFinalRenderedInWhenFriendlyRot(player, rotationOrder) end
function GetFirstPersonAimCamZoomFactor() end

---@deprecated
GetFirstPersonAimCamZoomFactor = GetGameplayCamZoom
GetGameplayCamZoom = GetFirstPersonAimCamZoomFactor

---**`CAM` `client`**
---[Native Documentation](https://docs.fivem.net/natives/?_0x89215EC747DF244A)
Expand Down Expand Up @@ -741,7 +741,7 @@ function IsCamSplinePaused(p0) end
function IsCinematicCamInputActive() end

---@deprecated
IsCinematicCamInputActive = IsCinematicCamActive
IsCinematicCamActive = IsCinematicCamInputActive

---**`CAM` `client`**
---[Native Documentation](https://docs.fivem.net/natives/?_0xB15162CB5826E9E8)
Expand Down Expand Up @@ -1099,7 +1099,7 @@ function N_0x91ef6ee6419e5b97(p0) end
function N_0x9dfe13ecdc1ec196(p0, p1) end

---@deprecated
N_0x9dfe13ecdc1ec196 = SetTimeIdleDrop
SetTimeIdleDrop = N_0x9dfe13ecdc1ec196

---**`CAM` `client`**
---[Native Documentation](https://docs.fivem.net/natives/?_0x9F97DA93681F87EA)
Expand Down Expand Up @@ -1690,7 +1690,7 @@ function SetCinematicNewsChannelActiveThisUpdate() end
function SetFirstPersonAimCamNearClipThisUpdate(distance) end

---@deprecated
SetFirstPersonAimCamNearClipThisUpdate = SetFirstPersonCamNearClip
SetFirstPersonCamNearClip = SetFirstPersonAimCamNearClipThisUpdate

---**`CAM` `client`**
---[Native Documentation](https://docs.fivem.net/natives/?_0x70894BD0915C5BCA)
Expand Down Expand Up @@ -1731,7 +1731,7 @@ function SetFlyCamHorizontalResponse(cam, p1, p2, p3) end
function SetFlyCamMaxHeight(cam, height) end

---@deprecated
SetFlyCamMaxHeight = SetCameraRange
SetCameraRange = SetFlyCamMaxHeight

---**`CAM` `client`**
---[Native Documentation](https://docs.fivem.net/natives/?_0xE827B9382CFB41BA)
Expand Down Expand Up @@ -1759,7 +1759,7 @@ function SetFlyCamVerticalSpeedMultiplier(cam, p1, p2, p3) end
function SetFollowPedCamThisUpdate(camName, p1) end

---@deprecated
SetFollowPedCamThisUpdate = SetFollowPedCamCutsceneChat
SetFollowPedCamCutsceneChat = SetFollowPedCamThisUpdate

---**`CAM` `client`**
---[Native Documentation](https://docs.fivem.net/natives/?_0x5A4F9EDF1673F704)
Expand Down Expand Up @@ -1907,7 +1907,7 @@ function SetGameplayEntityHint(entity, xOffset, yOffset, zOffset, p4, p5, p6, p7
function SetGameplayHintAnimCloseup(toggle) end

---@deprecated
SetGameplayHintAnimCloseup = GetIsMultiplayerBrief
GetIsMultiplayerBrief = SetGameplayHintAnimCloseup

---**`CAM` `client`**
---[Native Documentation](https://docs.fivem.net/natives/?_0x5D7B620DAE436138)
Expand All @@ -1928,7 +1928,7 @@ function SetGameplayHintAnimOffsety(yOffset) end
function SetGameplayHintBaseOrbitPitchOffset(value) end

---@deprecated
SetGameplayHintBaseOrbitPitchOffset = SetGameplayHintAngle
SetGameplayHintAngle = SetGameplayHintBaseOrbitPitchOffset

---**`CAM` `client`**
---[Native Documentation](https://docs.fivem.net/natives/?_0xF8BDBF3D573049A1)
Expand All @@ -1937,7 +1937,7 @@ SetGameplayHintBaseOrbitPitchOffset = SetGameplayHintAngle
function SetGameplayHintFollowDistanceScalar(value) end

---@deprecated
SetGameplayHintFollowDistanceScalar = SetGameplayHintAnimOffsetz
SetGameplayHintAnimOffsetz = SetGameplayHintFollowDistanceScalar

---**`CAM` `client`**
---[Native Documentation](https://docs.fivem.net/natives/?_0x513403FB9C56211F)
Expand Down Expand Up @@ -1998,7 +1998,7 @@ function SetInVehicleCamStateThisUpdate(p0, p1) end
function SetThirdPersonAimCamNearClipThisUpdate(distance) end

---@deprecated
SetThirdPersonAimCamNearClipThisUpdate = SetThirdPersonAimCamNearClip
SetThirdPersonAimCamNearClip = SetThirdPersonAimCamNearClipThisUpdate

---**`CAM` `client`**
---[Native Documentation](https://docs.fivem.net/natives/?_0xA13B0222F3D94A94)
Expand Down Expand Up @@ -2139,7 +2139,7 @@ function StopGameplayHint(p0) end
function StopRenderingScriptCamsUsingCatchUp(render, p1, p2) end

---@deprecated
StopRenderingScriptCamsUsingCatchUp = RenderFirstPersonCam
RenderFirstPersonCam = StopRenderingScriptCamsUsingCatchUp

---**`CAM` `client`**
---[Native Documentation](https://docs.fivem.net/natives/?_0x1C9D7949FA533490)
Expand Down
2 changes: 1 addition & 1 deletion Lua/natives/GTAV/CUTSCENE.lua
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ function RequestCutscene(cutsceneName, flags) end
function RequestCutsceneWithPlaybackList(cutsceneName, playbackFlags, flags) end

---@deprecated
RequestCutsceneWithPlaybackList = RequestCutsceneEx
RequestCutsceneEx = RequestCutsceneWithPlaybackList

---**`CUTSCENE` `client`**
---[Native Documentation](https://docs.fivem.net/natives/?_0x41FAA8FB2ECE8720)
Expand Down
Loading

0 comments on commit 1d2fdb9

Please sign in to comment.