From 0a0d9311f1a07ca1c85a7ca9846d3768c7f2fb0f Mon Sep 17 00:00:00 2001 From: NeenGame Date: Sat, 24 Aug 2024 11:28:43 +0300 Subject: [PATCH] Fix some natives images and other things --- CAM/InvalidateIdleCam.md | 2 +- CAM/InvalidateVehicleIdleCam.md | 2 +- CAM/SetCamDofStrength.md | 2 +- CAM/SetCamSplineSmoothingStyle.md | 2 -- ENTITY/RemoveModelHide.md | 2 +- ENTITY/SetEntityRotation.md | 4 ++-- GRAPHICS/DrawBinkMovie.md | 4 ++-- GRAPHICS/DrawSpotLight.md | 2 +- GRAPHICS/EnableClownBloodVfx.md | 2 +- ...etScaleformMovieMethodReturnValueString.md | 4 ++-- GRAPHICS/N_0x2d3b147afad49de0.md | 6 +++--- GRAPHICS/SetBinkMovie.md | 4 ++-- ...SetDisablePetrolDecalsIgnitingThisFrame.md | 4 ++-- GRAPHICS/TerraingridActivate.md | 2 +- GRAPHICS/TerraingridSetColours.md | 17 +++++++++++---- GRAPHICS/TerraingridSetParams.md | 17 ++++++++++----- HUD/AddBlipForArea.md | 4 ++-- HUD/AddBlipForEntity.md | 4 ++-- HUD/AddBlipForRadius.md | 2 +- HUD/AllowPauseMenuWhenDeadThisFrame.md | 2 +- HUD/DisplayHudWhenDeadThisFrame.md | 2 +- HUD/DisplayPlayerNameTagsOnBlips.md | 1 - HUD/EndTextCommandThefeedPostAward.md | 6 +++--- HUD/EndTextCommandThefeedPostMessagetext.md | 6 +++--- HUD/EndTextCommandThefeedPostMessagetextTu.md | 18 +++++++++------- HUD/EndTextCommandThefeedPostReplayInput.md | 1 - HUD/EndTextCommandThefeedPostStats.md | 9 ++++---- HUD/EndTextCommandThefeedPostTicker.md | 2 +- HUD/PauseMenuSetWarnOnTabChange.md | 13 +++++++++++- HUD/SetBlipCategory.md | 5 ++--- HUD/SetFakePausemapPlayerPositionThisFrame.md | 2 +- HUD/SetMinimapGolfCourse.md | 20 +++++++++++++++++- HUD/SetMouseCursorVisible.md | 4 ++-- HUD/SetMultiplayerBankCash.md | 21 ++++++++++++++++--- HUD/SetMultiplayerWalletCash.md | 21 ++++++++++++++++--- HUD/SetRadiusBlipEdge.md | 4 ++-- HUD/SetWarningMessage.md | 2 +- HUD/SetWarningMessageWithAlert.md | 6 +++--- HUD/ShowCrewIndicatorOnBlip.md | 2 +- HUD/ShowFriendIndicatorOnBlip.md | 2 +- HUD/StartGpsCustomRoute.md | 2 +- HUD/StartGpsMultiRoute.md | 2 +- MISC/AddStuntJumpAngled.md | 2 +- MISC/GetFrameCount.md | 2 +- MISC/GetFrameTime.md | 2 +- MISC/SetSuperJumpThisFrame.md | 4 ++-- NETWORK/NetworkIsInParty.md | 5 +---- NETWORK/NetworkIsPartyMember.md | 5 +---- OBJECT/CreateObject.md | 2 +- OBJECT/FixObjectFragment.md | 2 +- OBJECT/GetRayfireMapObjectAnimPhase.md | 10 ++++----- OBJECT/IsPointInAngledArea.md | 4 ---- PATHFIND/SetGpsDisabledZoneAtIndex.md | 7 ------- PED/RegisterPedheadshotTransparent.md | 3 --- PED/SetPedDensityMultiplierThisFrame.md | 4 ++-- PLAYER/RestorePlayerStamina.md | 4 ++-- PLAYER/StartPlayerTeleport.md | 2 +- STREAMING/NewLoadSceneStart.md | 4 ++-- STREAMING/PrefetchSrl.md | 2 +- STREAMING/SwitchToMultiSecondpart.md | 2 +- TASK/GetScriptTaskStatus.md | 4 ++-- TASK/TaskWanderInArea.md | 4 ++-- VEHICLE/CreateMissionTrain.md | 2 +- VEHICLE/SetBikeOnStand.md | 1 - VEHICLE/SetSpecialFlightModeAllowed.md | 4 ++-- VEHICLE/SetVehicleDropsMoneyWhenBlownUp.md | 1 - VEHICLE/SetVehicleXenonLightsColor.md | 2 +- 67 files changed, 186 insertions(+), 137 deletions(-) diff --git a/CAM/InvalidateIdleCam.md b/CAM/InvalidateIdleCam.md index 676968017..a7ccb062b 100644 --- a/CAM/InvalidateIdleCam.md +++ b/CAM/InvalidateIdleCam.md @@ -13,7 +13,7 @@ Resets the idle camera timer. Calling that in a loop once every few seconds is e ## Examples ```lua -Citizen.CreateThread(function() +CreateThread(function() while true do InvalidateIdleCam() InvalidateVehicleIdleCam() diff --git a/CAM/InvalidateVehicleIdleCam.md b/CAM/InvalidateVehicleIdleCam.md index 6bc6a002e..bd3a126ad 100644 --- a/CAM/InvalidateVehicleIdleCam.md +++ b/CAM/InvalidateVehicleIdleCam.md @@ -13,7 +13,7 @@ Resets the vehicle idle camera timer. Calling this in a loop will disable the id ## Examples ```lua -Citizen.CreateThread(function() +CreateThread(function() while true do InvalidateIdleCam() InvalidateVehicleIdleCam() diff --git a/CAM/SetCamDofStrength.md b/CAM/SetCamDofStrength.md index 26aa20bd8..656fce5fe 100644 --- a/CAM/SetCamDofStrength.md +++ b/CAM/SetCamDofStrength.md @@ -35,7 +35,7 @@ CreateThread(function() while DoesCamExist(camera) do -- Use DoF effect (needs to be called every tick) SetUseHiDof() - Citizen.Wait(0) + Wait(0) end end) ``` diff --git a/CAM/SetCamSplineSmoothingStyle.md b/CAM/SetCamSplineSmoothingStyle.md index a18ca4e60..cd00bd049 100644 --- a/CAM/SetCamSplineSmoothingStyle.md +++ b/CAM/SetCamSplineSmoothingStyle.md @@ -49,8 +49,6 @@ Using 1-3 will result in misalignment from the passed durations for the spline n Graph below demonstrates interpolation between 0-1000 and back 10 times. -![](https://i.imgur.com/cixWh7m.png) - ## Parameters * **cam**: The DEFAULT_SPLINE_CAMERA to apply the smoothing to * **smoothingStyle**: 0 to 3, 0 no additional smoothing, 1 smooth lead-in, 2 smooth lead-out, 3 smooth lead-in & lead-out diff --git a/ENTITY/RemoveModelHide.md b/ENTITY/RemoveModelHide.md index f7a160691..719665ce6 100644 --- a/ENTITY/RemoveModelHide.md +++ b/ENTITY/RemoveModelHide.md @@ -28,7 +28,7 @@ local playerPedCoords = GetEntityCoords(PlayerPedId()) -- Hides all entities with the hash "1437508529" within 1.0 gta units. CreateModelHide(playerPedCoords, 1.0, 1437508529, true) -Citizen.Wait(2500) +Wait(2500) -- This will make all hidden entities with the hash "1437508529" within 1.0 gta units visible. RemoveModelHide(playerPedCoords, 1.0, 1437508529, false) diff --git a/ENTITY/SetEntityRotation.md b/ENTITY/SetEntityRotation.md index fde244379..93a3c9f8e 100644 --- a/ENTITY/SetEntityRotation.md +++ b/ENTITY/SetEntityRotation.md @@ -42,7 +42,7 @@ RegisterCommand('360', function() local currentYaw = yaw -- Loop to adjust the rotation in steps for i = 1, steps do - Citizen.Wait(20) -- Increases the delay between each adjustment to make the animation slower + Wait(20) -- Increases the delay between each adjustment to make the animation slower currentYaw = currentYaw + (360 / steps) -- Increments the rotation if currentYaw >= finalYaw then currentYaw = finalYaw @@ -55,6 +55,6 @@ RegisterCommand('360', function() end end -- Execute the rotation in a coroutine to not block the main thread - Citizen.CreateThread(doRotation) + CreateThread(doRotation) end, false) ``` diff --git a/GRAPHICS/DrawBinkMovie.md b/GRAPHICS/DrawBinkMovie.md index c6f9c469c..d817601ab 100644 --- a/GRAPHICS/DrawBinkMovie.md +++ b/GRAPHICS/DrawBinkMovie.md @@ -24,7 +24,7 @@ Must be called each frame, will play at specified position on screen when called ## Examples ```lua -Citizen.CreateThread(function() +CreateThread(function() local binkint = SetBinkMovie("casino_trailer") -- BINK movie, list can be found at https://gist.github.com/ItsJunction/8046f28c29ea8ff2821e9e4f933f595f SetBinkMovieTime(binkint, 0.0) -- Seeks to 0%, just incase of errors. @@ -32,7 +32,7 @@ Citizen.CreateThread(function() print(math.floor(GetBinkMovieTime(binkint) * 100)/100 .. "%") -- Prints current playtime (as percentage). PlayBinkMovie(binkint) DrawBinkMovie(binkint, 0.5, 0.5, 1.0, 1.0, 0.0, 255, 255, 255, 255) -- This example draws and plays in fullscreen in the center (no matter the resolution). - Citizen.Wait(0) + Wait(0) end end) ``` diff --git a/GRAPHICS/DrawSpotLight.md b/GRAPHICS/DrawSpotLight.md index fec44c425..2c0d87d97 100644 --- a/GRAPHICS/DrawSpotLight.md +++ b/GRAPHICS/DrawSpotLight.md @@ -17,7 +17,7 @@ Parameters: * brightness - the brightness of the light * roundness - "smoothness" of the circle edge * radius - the radius size of the spotlight -* falloff - the falloff size of the light's edge (example: www.i.imgur.com/DemAWeO.jpg) +* falloff - the falloff size of the light's edge Example in C# (spotlight aims at the closest vehicle): Vector3 myPos = Game.Player.Character.Position; Vehicle nearest = World.GetClosestVehicle(myPos , 1000f); diff --git a/GRAPHICS/EnableClownBloodVfx.md b/GRAPHICS/EnableClownBloodVfx.md index 57a521f13..c97f68159 100644 --- a/GRAPHICS/EnableClownBloodVfx.md +++ b/GRAPHICS/EnableClownBloodVfx.md @@ -32,7 +32,7 @@ if (STREAMING::HAS_NAMED_PTFX_ASSET_LOADED("scr_rcbarry2")) ```lua RequestNamedPtfxAsset("scr_rcbarry2") -- Request the PTFX while not HasNamedPtfxAssetLoaded("scr_rcbarry2") do - Citizen.Wait(0) + Wait(0) end EnableClownBloodVfx(true) -- Enable the clown PTFX ``` diff --git a/GRAPHICS/GetScaleformMovieMethodReturnValueString.md b/GRAPHICS/GetScaleformMovieMethodReturnValueString.md index 6871f0038..29f6266b0 100644 --- a/GRAPHICS/GetScaleformMovieMethodReturnValueString.md +++ b/GRAPHICS/GetScaleformMovieMethodReturnValueString.md @@ -22,7 +22,7 @@ Returns a string in the same way `GET_SCALEFORM_MOVIE_METHOD_RETURN_VALUE_INT` r ```lua local a = RequestScaleformMovie("translate") --scaleform gfx while not HasScaleformMovieLoaded(a) do - Citizen.Wait(0) + Wait(0) end BeginScaleformMovieMethod(a,"EnglishToChinese") --call function ScaleformMovieMethodAddParamPlayerNameString("Good") --input @@ -33,6 +33,6 @@ while true do print(c) break end - Citizen.Wait(0) + Wait(0) end ``` diff --git a/GRAPHICS/N_0x2d3b147afad49de0.md b/GRAPHICS/N_0x2d3b147afad49de0.md index 865d64046..e0085bc77 100644 --- a/GRAPHICS/N_0x2d3b147afad49de0.md +++ b/GRAPHICS/N_0x2d3b147afad49de0.md @@ -32,12 +32,12 @@ NativeDB Introduced: v1290 ```lua -- drawing the game area for penetrator arcade game -Citizen.CreateThread(function() +CreateThread(function() RequestStreamedTextureDict("MPArcadeDegenatron", false) - while not HasStreamedTextureDictLoaded("MPArcadeDegenatron") do Citizen.Wait(1) end + while not HasStreamedTextureDictLoaded("MPArcadeDegenatron") do Wait(1) end while true do N_0x2d3b147afad49de0("MPArcadeDegenatron", "penetrator_scene_frame", 0.5, 0.5, 0.4, 0.6, 0.0, 255, 0, 0, 255, 0) - Citizen.Wait(1) + Wait(1) end end) ``` diff --git a/GRAPHICS/SetBinkMovie.md b/GRAPHICS/SetBinkMovie.md index b3e9712bf..699b0f651 100644 --- a/GRAPHICS/SetBinkMovie.md +++ b/GRAPHICS/SetBinkMovie.md @@ -17,7 +17,7 @@ Creates an integer (usually 1) for a BINK movie to be called with other natives. ## Examples ```lua -Citizen.CreateThread(function() +CreateThread(function() local binkint = SetBinkMovie("casino_trailer") SetBinkMovieTime(binkint, 0.0) -- Seeks to 0% @@ -25,7 +25,7 @@ Citizen.CreateThread(function() print(math.floor(GetBinkMovieTime(binkint) * 100)/100 .. "%") -- Prints current playtime (as percentage). PlayBinkMovie(binkint) DrawBinkMovie(binkint, 0.5, 0.5, 1.0, 1.0, 0.0, 255, 255, 255, 255) -- This example draws and plays in Fullscreen and in the center of screen (no matter the resolution). - Citizen.Wait(0) + Wait(0) end end) ``` diff --git a/GRAPHICS/SetDisablePetrolDecalsIgnitingThisFrame.md b/GRAPHICS/SetDisablePetrolDecalsIgnitingThisFrame.md index 394ec60e3..96bbc28c3 100644 --- a/GRAPHICS/SetDisablePetrolDecalsIgnitingThisFrame.md +++ b/GRAPHICS/SetDisablePetrolDecalsIgnitingThisFrame.md @@ -15,10 +15,10 @@ Prevents gas / petrol decals (aka gas / petrol trails and puddles) to be ignited ## Examples ```lua -Citizen.CreateThread(function() +CreateThread(function() while true do SetDisablePetrolDecalsIgnitingThisFrame() - Citizen.Wait(0) + Wait(0) end end) ``` diff --git a/GRAPHICS/TerraingridActivate.md b/GRAPHICS/TerraingridActivate.md index 9bc10b79f..1bfacd091 100644 --- a/GRAPHICS/TerraingridActivate.md +++ b/GRAPHICS/TerraingridActivate.md @@ -9,7 +9,7 @@ aliases: ["0xA356990E161C9E65"] void TERRAINGRID_ACTIVATE(BOOL toggle); ``` -This native enables/disables the gold putting grid display (https://i.imgur.com/TC6cku6.png). +This native enables/disables the gold putting grid display. This requires these two natives to be called as well to configure the grid: [`TERRAINGRID_SET_PARAMS`](#_0x1C4FC5752BCD8E48) and [`TERRAINGRID_SET_COLOURS`](#_0x5CE62918F8D703C7). diff --git a/GRAPHICS/TerraingridSetColours.md b/GRAPHICS/TerraingridSetColours.md index 7ef97e48b..738004417 100644 --- a/GRAPHICS/TerraingridSetColours.md +++ b/GRAPHICS/TerraingridSetColours.md @@ -12,7 +12,6 @@ void TERRAINGRID_SET_COLOURS(int lowR, int lowG, int lowB, int lowAlpha, int R, This native is used along with these two natives: [`TERRAINGRID_ACTIVATE`](#_0xA356990E161C9E65) and [`TERRAINGRID_SET_PARAMS`](#_0x1C4FC5752BCD8E48). This native sets the colors for the golf putting grid. the 'min...' values are for the lower areas that the grid covers, the 'max...' values are for the higher areas that the grid covers, all remaining values are for the 'normal' ground height. -All those natives combined they will output something like this: https://i.imgur.com/TC6cku6.png Old description: Only called in golf and golf_mp @@ -35,13 +34,23 @@ GRAPHICS::_0x5CE62918F8D703C7(255, 0, 0, 64, 255, 255, 255, 5, 255, 255, 0, 64); ## Examples ```cs -N_0xa356990e161c9e65(true); // toggle on/off +TerraingridActivate(true); // toggle on/off // this native configures the location, size, rotation, normal height, and the difference ratio between min, normal and max. -N_0x1c4fc5752bcd8e48(-1114.121f, 220.789f, 63.78f, -1f, 0.85f, 0f, 15f, 15f, -1f, 20f, 40f, 63.78f, 0.2f); +TerraingridSetParams(-1114.121f, 220.789f, 63.78f, -1f, 0.85f, 0f, 15f, 15f, -1f, 20f, 40f, 63.78f, 0.2f); // This native defines the colors (and alpha/opacity levels) for min, normal and max heights. // (in this case: red for lower, white for normal, yellow for higher) -N_0x5ce62918f8d703c7(255, 0, 0, 64, 255, 255, 255, 5, 255, 255, 0, 64); +TerraingridSetColours(255, 0, 0, 64, 255, 255, 255, 5, 255, 255, 0, 64); ``` +```lua +TerraingridActivate(true) -- toggle on/off + +-- this native configures the location, size, rotation, normal height, and the difference ratio between min, normal and max. +TerraingridSetParams(-1114.121, 220.789, 63.78, -1, 0.85, 0, 15, 15, -1, 20, 40, 63.78, 0.2); + +-- This native defines the colors (and alpha/opacity levels) for min, normal and max heights. +-- (in this case: red for lower, white for normal, yellow for higher) +TerraingridSetColours(255, 0, 0, 64, 255, 255, 255, 5, 255, 255, 0, 64); +``` \ No newline at end of file diff --git a/GRAPHICS/TerraingridSetParams.md b/GRAPHICS/TerraingridSetParams.md index a488d547e..a3de16b58 100644 --- a/GRAPHICS/TerraingridSetParams.md +++ b/GRAPHICS/TerraingridSetParams.md @@ -13,8 +13,6 @@ This native is used along with these two natives: [`TERRAINGRID_ACTIVATE`](#_0xA This native configures the location, size, rotation, normal height, and the difference ratio between min, normal and max. -All those natives combined they will output something like this: https://i.imgur.com/TC6cku6.png - ## Parameters * **x**: Grid center x coord. * **y**: Grid center y coord. @@ -32,14 +30,23 @@ All those natives combined they will output something like this: https://i.imgur ## Examples ```cs -N_0xa356990e161c9e65(true); // toggle on/off +TerraingridActivate(true); // toggle on/off // this native configures the location, size, rotation, normal height, and the difference ratio between min, normal and max. -N_0x1c4fc5752bcd8e48(-1114.121f, 220.789f, 63.78f, -1f, 0.85f, 0f, 15f, 15f, -1f, 20f, 40f, 63.78f, 0.2f); +TerraingridSetParams(-1114.121f, 220.789f, 63.78f, -1f, 0.85f, 0f, 15f, 15f, -1f, 20f, 40f, 63.78f, 0.2f); // This native defines the colors (and alpha/opacity levels) for min, normal and max heights. // (in this case: red for lower, white for normal, yellow for higher) -N_0x5ce62918f8d703c7(255, 0, 0, 64, 255, 255, 255, 5, 255, 255, 0, 64); +TerraingridSetColours(255, 0, 0, 64, 255, 255, 255, 5, 255, 255, 0, 64); ``` +```lua +TerraingridActivate(true) -- toggle on/off +-- this native configures the location, size, rotation, normal height, and the difference ratio between min, normal and max. +TerraingridSetParams(-1114.121, 220.789, 63.78, -1, 0.85, 0, 15, 15, -1, 20, 40, 63.78, 0.2); + +-- This native defines the colors (and alpha/opacity levels) for min, normal and max heights. +-- (in this case: red for lower, white for normal, yellow for higher) +TerraingridSetColours(255, 0, 0, 64, 255, 255, 255, 5, 255, 255, 0, 64); +``` \ No newline at end of file diff --git a/HUD/AddBlipForArea.md b/HUD/AddBlipForArea.md index 7a6f6a752..a428d5728 100644 --- a/HUD/AddBlipForArea.md +++ b/HUD/AddBlipForArea.md @@ -16,8 +16,8 @@ It is recommended to use [SET_BLIP_ROTATION](#_0xF87683CDF73C3F6E) and [SET_BLIP By default, the blip will show as a _regular_ blip with the specified color/sprite if it is outside of the minimap view. Example image: -![minimap](https://i.imgur.com/qLbXWcQ.png) -![big map](https://i.imgur.com/0j7O7Rh.png) +![minimap](https://r2.fivemanage.com/qFztShHCe1bhCDvTI4vxv/Screenshot%202024-08-24%20095352.png) +![big map](https://r2.fivemanage.com/qFztShHCe1bhCDvTI4vxv/Screenshot%202024-08-24%20095301.png) (Native name is _likely_ to actually be ADD_BLIP_FOR_AREA, but due to the usual reasons this can't be confirmed) diff --git a/HUD/AddBlipForEntity.md b/HUD/AddBlipForEntity.md index 12b00599a..87142985a 100644 --- a/HUD/AddBlipForEntity.md +++ b/HUD/AddBlipForEntity.md @@ -12,9 +12,9 @@ Create a blip that by default is red (enemy), you can use [SET_BLIP_AS_FRIENDLY] Can be used for objects, vehicles and peds. Example of enemy: -![enemy](https://i.imgur.com/fl78svv.png) +![enemy](https://r2.fivemanage.com/qFztShHCe1bhCDvTI4vxv/Screenshot%202024-08-24%20095909.png) Example of friend: -![friend](https://i.imgur.com/Q16ho5d.png) +![friend](https://fivemanage.com/dashboard/fivem-things/images/5f54sb6siLNqGIpo9t2pC) ## Parameters * **entity**: The entity handle to create the blip. diff --git a/HUD/AddBlipForRadius.md b/HUD/AddBlipForRadius.md index 1150408a5..c703c2f70 100644 --- a/HUD/AddBlipForRadius.md +++ b/HUD/AddBlipForRadius.md @@ -10,7 +10,7 @@ Blip ADD_BLIP_FOR_RADIUS(float posX, float posY, float posZ, float radius); Create a blip with a radius for the specified coordinates (it doesnt create the blip sprite, so you need to use [AddBlipCoords](#_0xC6F43D0E)) Example image: -![example](https://i.imgur.com/9hQl3DB.png) +![example](https://r2.fivemanage.com/qFztShHCe1bhCDvTI4vxv/Screenshot%202024-08-24%20100417.png) ## Parameters * **posX**: The x position of the blip (you can also send a vector3 instead of the bulk coordinates) diff --git a/HUD/AllowPauseMenuWhenDeadThisFrame.md b/HUD/AllowPauseMenuWhenDeadThisFrame.md index 4ead58afd..83fffacb4 100644 --- a/HUD/AllowPauseMenuWhenDeadThisFrame.md +++ b/HUD/AllowPauseMenuWhenDeadThisFrame.md @@ -13,7 +13,7 @@ Allows opening the pause menu this frame, when the player is dead. ## Examples ```lua -Citizen.CreateThread(function() +CreateThread(function() while true do N_0xcc3fdded67bcfc63() Wait(0) diff --git a/HUD/DisplayHudWhenDeadThisFrame.md b/HUD/DisplayHudWhenDeadThisFrame.md index fd7e82a84..e68ebb022 100644 --- a/HUD/DisplayHudWhenDeadThisFrame.md +++ b/HUD/DisplayHudWhenDeadThisFrame.md @@ -13,7 +13,7 @@ Enables drawing some hud components, such as help labels, this frame, when the p ## Examples ```lua -Citizen.CreateThread(function() +CreateThread(function() while true do N_0x7669f9e39dc17063() Wait(0) diff --git a/HUD/DisplayPlayerNameTagsOnBlips.md b/HUD/DisplayPlayerNameTagsOnBlips.md index b45aadaf5..86f976b6e 100644 --- a/HUD/DisplayPlayerNameTagsOnBlips.md +++ b/HUD/DisplayPlayerNameTagsOnBlips.md @@ -11,7 +11,6 @@ void DISPLAY_PLAYER_NAME_TAGS_ON_BLIPS(BOOL toggle); Toggles whether or not name labels are shown on the expanded minimap next to player blips, like in GTA:O. Doesn't need to be called every frame. -Preview: https://i.imgur.com/DfqKWfJ.png Make sure to call SET_BLIP_CATEGORY with index 7 for this to work on the desired blip. ## Parameters diff --git a/HUD/EndTextCommandThefeedPostAward.md b/HUD/EndTextCommandThefeedPostAward.md index 582f431de..e903b8fca 100644 --- a/HUD/EndTextCommandThefeedPostAward.md +++ b/HUD/EndTextCommandThefeedPostAward.md @@ -11,7 +11,7 @@ int END_TEXT_COMMAND_THEFEED_POST_AWARD(char* textureDict, char* textureName, in Shows an "award" notification above the minimap, lua example result: -![](https://i.imgur.com/e2DNaKX.png) +![Image](https://r2.fivemanage.com/qFztShHCe1bhCDvTI4vxv/image_2024-08-24_111337272.png) @@ -34,11 +34,11 @@ The notification handle. ## Examples ```lua -Citizen.CreateThread(function() +CreateThread(function() -- Get the ped headshot image. local handle = RegisterPedheadshot(PlayerPedId()) while not IsPedheadshotReady(handle) or not IsPedheadshotValid(handle) do - Citizen.Wait(0) + Wait(0) end local txd = GetPedheadshotTxdString(handle) diff --git a/HUD/EndTextCommandThefeedPostMessagetext.md b/HUD/EndTextCommandThefeedPostMessagetext.md index 3756a3792..a82385b61 100644 --- a/HUD/EndTextCommandThefeedPostMessagetext.md +++ b/HUD/EndTextCommandThefeedPostMessagetext.md @@ -15,7 +15,7 @@ Texture dictionary and texture name parameters are usually the same exact value. Example result: -![](https://i.imgur.com/LviutDl.png) +![Image](https://r2.fivemanage.com/qFztShHCe1bhCDvTI4vxv/image_2024-08-24_111233888.png) Old description with list of possible icons and texture names: @@ -49,11 +49,11 @@ The notification handle. ## Examples ```lua -Citizen.CreateThread(function() +CreateThread(function() -- Get the ped headshot image. local handle = RegisterPedheadshot(PlayerPedId()) while not IsPedheadshotReady(handle) or not IsPedheadshotValid(handle) do - Citizen.Wait(0) + Wait(0) end local txd = GetPedheadshotTxdString(handle) diff --git a/HUD/EndTextCommandThefeedPostMessagetextTu.md b/HUD/EndTextCommandThefeedPostMessagetextTu.md index 2972dba31..6917c9408 100644 --- a/HUD/EndTextCommandThefeedPostMessagetextTu.md +++ b/HUD/EndTextCommandThefeedPostMessagetextTu.md @@ -9,15 +9,8 @@ aliases: ["0x1E6611149DB3DB6B","_SET_NOTIFICATION_MESSAGE_4"] int END_TEXT_COMMAND_THEFEED_POST_MESSAGETEXT_TU(char* picTxd, char* picTxn, BOOL flash, int iconType, char* nameStr, char* subtitleStr, float durationMultiplier); ``` -Example, only occurrence in the scripts: - -``` -v_8 = UI::END_TEXT_COMMAND_THEFEED_POST_MESSAGETEXT_TU("CHAR_SOCIAL_CLUB", "CHAR_SOCIAL_CLUB", 0, 0, &v_9, "", a_5); -``` - Example result: -![](https://i.imgur.com/YrN4Bcm.png) - +![Image](https://r2.fivemanage.com/qFztShHCe1bhCDvTI4vxv/Screenshot%202024-08-24%20110820.png) ## Parameters * **picTxd**: @@ -29,3 +22,12 @@ Example result: * **durationMultiplier**: 1.0 is normal, 2.0 is twice as long, and 0.5 is half its normal display time. ## Return value + +## Examples + +```lua +BeginTextCommandThefeedPost("jamyfafi") +AddTextComponentSubstringPlayerName("Message") +EndTextCommandThefeedPostMessagetextTu("CHAR_SOCIAL_CLUB", "CHAR_SOCIAL_CLUB", false, 0, GetPlayerName(PlayerId()), "Hello", 1.0) +EndTextCommandThefeedPostTicker(false, true) +``` \ No newline at end of file diff --git a/HUD/EndTextCommandThefeedPostReplayInput.md b/HUD/EndTextCommandThefeedPostReplayInput.md index 2b1978113..a210748e4 100644 --- a/HUD/EndTextCommandThefeedPostReplayInput.md +++ b/HUD/EndTextCommandThefeedPostReplayInput.md @@ -15,7 +15,6 @@ type range: 0 - 2 if you set type to 1, button accepts "~INPUT_SOMETHING~" example: HUD::_0xDD6CB2CCE7C2735C(1, "~INPUT_TALK~", "Who you trynna get crazy with, ese? Don't you know I'm LOCO?!"); -- imgur.com/UPy0Ial Examples from the scripts: l_D1[1/*1*/]=HUD::_DD6CB2CCE7C2735C(1,"~INPUT_REPLAY_START_STOP_RECORDING~",""); l_D1[2/*1*/]=HUD::_DD6CB2CCE7C2735C(1,"~INPUT_SAVE_REPLAY_CLIP~",""); diff --git a/HUD/EndTextCommandThefeedPostStats.md b/HUD/EndTextCommandThefeedPostStats.md index 7986b1316..dcafc89a1 100644 --- a/HUD/EndTextCommandThefeedPostStats.md +++ b/HUD/EndTextCommandThefeedPostStats.md @@ -6,7 +6,7 @@ aliases: ["0x2B7E9A4EAAA93C89", "_SET_NOTIFICATION_MESSAGE_2"] ```c // 0x2B7E9A4EAAA93C89 0xED130FA1 -int END_TEXT_COMMAND_THEFEED_POST_STATS(char* statTitle, int iconEnum, BOOL stepVal, int barValue, BOOL isImportant, char* picTxd, char* picTxn); +int END_TEXT_COMMAND_THEFEED_POST_STATS(char* statTitle, int iconEnum, int stepVal, int barValue, BOOL isImportant, char* picTxd, char* picTxn); ``` [List of picture names](https://pastebin.com/XdpJVbHz) @@ -14,8 +14,7 @@ int END_TEXT_COMMAND_THEFEED_POST_STATS(char* statTitle, int iconEnum, BOOL step Example result: - -![](https://i.imgur.com/SdEZ22m.png) +![Image](https://r2.fivemanage.com/qFztShHCe1bhCDvTI4vxv/Screenshot%202024-08-24%20105749.png) ## Parameters @@ -33,11 +32,11 @@ The notification handle. ## Examples ```lua -Citizen.CreateThread(function() +CreateThread(function() -- Get the ped headshot image. local handle = RegisterPedheadshot(PlayerPedId()) while not IsPedheadshotReady(handle) or not IsPedheadshotValid(handle) do - Citizen.Wait(0) + Wait(0) end local txd = GetPedheadshotTxdString(handle) diff --git a/HUD/EndTextCommandThefeedPostTicker.md b/HUD/EndTextCommandThefeedPostTicker.md index c1ba4cd91..ae1bd78e9 100644 --- a/HUD/EndTextCommandThefeedPostTicker.md +++ b/HUD/EndTextCommandThefeedPostTicker.md @@ -12,7 +12,7 @@ int END_TEXT_COMMAND_THEFEED_POST_TICKER(BOOL isImportant, BOOL bHasTokens); Example output preview: -![](https://i.imgur.com/TJvqkYq.png) +![Image](https://r2.fivemanage.com/qFztShHCe1bhCDvTI4vxv/image_2024-08-24_105638029.png) ## Examples diff --git a/HUD/PauseMenuSetWarnOnTabChange.md b/HUD/PauseMenuSetWarnOnTabChange.md index 1a05ca1e3..0cbf610b9 100644 --- a/HUD/PauseMenuSetWarnOnTabChange.md +++ b/HUD/PauseMenuSetWarnOnTabChange.md @@ -9,8 +9,19 @@ aliases: ["0xF06EBB91A81E09E3"] void PAUSE_MENU_SET_WARN_ON_TAB_CHANGE(BOOL setWarn); ``` -Shows this warning message when trying to switch pause menu header tabs: https://i.imgur.com/8qmfztu.png +Shows this warning message when trying to switch pause menu header tabs + +![Example](https://r2.fivemanage.com/qFztShHCe1bhCDvTI4vxv/Screenshot%202024-08-24%20112445.png) ## Parameters * **setWarn**: Wether to show the message or not. +## Examples +```lua +CreateThread(function() + while true do + PauseMenuSetWarnOnTabChange(true) + Wait(0) + end +end) +``` \ No newline at end of file diff --git a/HUD/SetBlipCategory.md b/HUD/SetBlipCategory.md index d9a975f34..ce81273b8 100644 --- a/HUD/SetBlipCategory.md +++ b/HUD/SetBlipCategory.md @@ -8,10 +8,9 @@ ns: HUD void SET_BLIP_CATEGORY(Blip blip, int index); ``` -Examples result: - -![](https://i.imgur.com/skY6vAJ.png) +**Examples result:** +![Image](https://r2.fivemanage.com/qFztShHCe1bhCDvTI4vxv/image_2024-08-24_105454458.png) **index:** ``` diff --git a/HUD/SetFakePausemapPlayerPositionThisFrame.md b/HUD/SetFakePausemapPlayerPositionThisFrame.md index 4085d69d6..9f0c2608d 100644 --- a/HUD/SetFakePausemapPlayerPositionThisFrame.md +++ b/HUD/SetFakePausemapPlayerPositionThisFrame.md @@ -22,7 +22,7 @@ local function IsPlayerUsingPausemap() return IsPauseMenuActive() and GetNumberOfReferencesOfScriptWithNameHash(`pausemenu_map`) > 0 end -Citizen.CreateThread(function() +CreateThread(function() while true do Wait(0) -- Not using Wait will cause the game to hang. diff --git a/HUD/SetMinimapGolfCourse.md b/HUD/SetMinimapGolfCourse.md index b5dd14218..90602ad90 100644 --- a/HUD/SetMinimapGolfCourse.md +++ b/HUD/SetMinimapGolfCourse.md @@ -21,6 +21,10 @@ Use [`SET_MINIMAP_GOLF_COURSE_OFF()`](#_0x35EDD5B2E3FF01C0) to reset the map whe ## Parameters * **hole**: The ID of the hole to draw on the map. ID starts with 1 for hole 1, 2 for hole 2, etc. 0 disables the golf map behaviour. +**Example result:** +![example-image](https://r2.fivemanage.com/qFztShHCe1bhCDvTI4vxv/Screenshot%202024-08-24%20104753.png) +![example-image-other](https://r2.fivemanage.com/qFztShHCe1bhCDvTI4vxv/Screenshot%202024-08-24%20104757.png) + ## Examples ```cs // draw hole 2 @@ -36,7 +40,21 @@ SetRadarBigmapEnabled(false, false); // Create the flag blip and set the sprite to the flag sprite. int blip = AddBlipForCoord(-1321.98f, 158.93f, 57.8f); SetBlipSprite(blip, 358); +``` + +```lua +-- draw hole 2 +SetMinimapGolfCourse(2) + +-- set the other minimap properties for this specific hole: +SetRadarZoom(850) +LockMinimapPosition(-1220.0, 240.0) +LockMinimapAngle(90) +ToggleStealthRadar(false) +SetRadarBigmapEnabled(false, false) -// result of this code example: https://i.imgur.com/DUnUzKS.png +-- Create the flag blip and set the sprite to the flag sprite. +local blip = AddBlipForCoord(-1321.98, 158.93, 57.8) +SetBlipSprite(blip, 358) ``` diff --git a/HUD/SetMouseCursorVisible.md b/HUD/SetMouseCursorVisible.md index 87a452669..bf4fb8848 100644 --- a/HUD/SetMouseCursorVisible.md +++ b/HUD/SetMouseCursorVisible.md @@ -16,11 +16,11 @@ Toggles the visibility of the cursor. Do note that if the game loses focus and t ## Examples ```lua -Citizen.CreateThread(function() +CreateThread(function() local menuType = "FE_MENU_VERSION_CORONA_LOBBY" ActivateFrontendMenu(GetHashKey(menuType), false, -1) --100 works as well - Citizen.Wait(1000) + Wait(1000) --Hide frontend cursor SetMouseCursorVisible(false) end) diff --git a/HUD/SetMultiplayerBankCash.md b/HUD/SetMultiplayerBankCash.md index 832ce97b6..c5331ca5b 100644 --- a/HUD/SetMultiplayerBankCash.md +++ b/HUD/SetMultiplayerBankCash.md @@ -10,7 +10,7 @@ void SET_MULTIPLAYER_BANK_CASH(); Preview image: -![](https://i.imgur.com/1BTmdyv.png) +![Image](https://r2.fivemanage.com/qFztShHCe1bhCDvTI4vxv/image_2024-08-24_104318757.png) To change the bank balance use [`STAT_SET_INT`](#_0xB3271D7AB655B441) with "BANK_BALANCE" to whatever value you need to. @@ -18,10 +18,10 @@ To change the bank balance use [`STAT_SET_INT`](#_0xB3271D7AB655B441) with "BANK ```cs // Code to show both Money and Bank HUD -N_0x170f541e1cadd1de(true); +UseFakeMpCash(true); SetMultiplayerWalletCash(); SetMultiplayerBankCash(); -N_0x170f541e1cadd1de(false); +UseFakeMpCash(false); // Add a delay to let the player read his money await Delay(5000); @@ -30,3 +30,18 @@ await Delay(5000); RemoveMultiplayerWalletCash(); RemoveMultiplayerBankCash(); ``` + +```lua +-- Code to show both Money and Bank HUD +UseFakeMpCash(true) +SetMultiplayerWalletCash() +SetMultiplayerBankCash() +UseFakeMpCash(false) + +-- Add a delay to let the player read his money +Wait(5000) + +-- Hide both Bank and Money HUD +RemoveMultiplayerWalletCash() +RemoveMultiplayerBankCash() +``` \ No newline at end of file diff --git a/HUD/SetMultiplayerWalletCash.md b/HUD/SetMultiplayerWalletCash.md index 93206cf86..3bfc5adf2 100644 --- a/HUD/SetMultiplayerWalletCash.md +++ b/HUD/SetMultiplayerWalletCash.md @@ -11,7 +11,7 @@ void SET_MULTIPLAYER_WALLET_CASH(); Preview image: -![](https://i.imgur.com/1BTmdyv.png) +![Image](https://r2.fivemanage.com/qFztShHCe1bhCDvTI4vxv/image_2024-08-24_104318757.png) To change money value use [`STAT_SET_INT`](#_0xB3271D7AB655B441) with "MP0_WALLET_BALANCE" to whatever value you need to. @@ -19,10 +19,10 @@ To change money value use [`STAT_SET_INT`](#_0xB3271D7AB655B441) with "MP0_WALLE ```cs // Code to show both Money and Bank HUD -N_0x170f541e1cadd1de(true); +UseFakeMpCash(true); SetMultiplayerWalletCash(); SetMultiplayerBankCash(); -N_0x170f541e1cadd1de(false); +UseFakeMpCash(false); // Add a delay to let the player read his money await Delay(5000); @@ -31,3 +31,18 @@ await Delay(5000); RemoveMultiplayerWalletCash(); RemoveMultiplayerBankCash(); ``` + +```lua +-- Code to show both Money and Bank HUD +UseFakeMpCash(true) +SetMultiplayerWalletCash() +SetMultiplayerBankCash() +UseFakeMpCash(false) + +-- Add a delay to let the player read his money +Wait(5000) + +-- Hide both Bank and Money HUD +RemoveMultiplayerWalletCash() +RemoveMultiplayerBankCash() +``` \ No newline at end of file diff --git a/HUD/SetRadiusBlipEdge.md b/HUD/SetRadiusBlipEdge.md index ccd0f3ec6..970000326 100644 --- a/HUD/SetRadiusBlipEdge.md +++ b/HUD/SetRadiusBlipEdge.md @@ -13,7 +13,7 @@ Enabling this on a radius blip will make it outline only. Please note that this only works on a **radius** blip (i.e. one generated using [`ADD_BLIP_FOR_RADIUS`](#_0x46818D79B1F7499A)), not a normal blip. **Example result:** -![example-image](https://i.imgur.com/hS6ki7p.png) +![example-image](https://r2.fivemanage.com/qFztShHCe1bhCDvTI4vxv/Screenshot%202024-08-24%20103807.png) ## Parameters * **blip**: The blip handle @@ -22,7 +22,7 @@ Please note that this only works on a **radius** blip (i.e. one generated using ## Examples ```lua local coords = GetEntityCoords(PlayerPedId()) -local radiusBlip = AddBlipForRadius(coords, 100.0) -- need to have .0 +local radiusBlip = AddBlipForRadius(coords.x, coords.y, coords.z, 100.0) --Radius need to have .0 SetBlipColour(radiusBlip, 1) SetBlipAlpha(radiusBlip, 255) SetRadiusBlipEdge(radiusBlip, true) diff --git a/HUD/SetWarningMessage.md b/HUD/SetWarningMessage.md index 4092c0068..d6b19d5cc 100644 --- a/HUD/SetWarningMessage.md +++ b/HUD/SetWarningMessage.md @@ -74,7 +74,7 @@ enum INSTRUCTIONAL_BUTTON_TYPES Note: this list is definitely NOT complete, but these are the ones I've been able to find before giving up because it's such a boring thing to look for 'good' combinations. **Result of the example code:** -[https://i.imgur.com/imwoimm.png](https://i.imgur.com/imwoimm.png) +[Image](https://r2.fivemanage.com/qFztShHCe1bhCDvTI4vxv/image_2024-08-24_103702826.png) ## Parameters diff --git a/HUD/SetWarningMessageWithAlert.md b/HUD/SetWarningMessageWithAlert.md index 5e7a37e29..c71146919 100644 --- a/HUD/SetWarningMessageWithAlert.md +++ b/HUD/SetWarningMessageWithAlert.md @@ -55,7 +55,7 @@ Alt = { } ``` -**Result of the example code:** [https://i.imgur.com/TvmNF4k.png](https://i.imgur.com/TvmNF4k.png) +**Result of the example code:** [Image](https://r2.fivemanage.com/qFztShHCe1bhCDvTI4vxv/image_2024-08-24_103558113.png) ## Parameters * **labelTitle**: Label of the alert's title. @@ -73,12 +73,12 @@ Alt = { ## Examples ```lua -Citizen.CreateThread(function() +CreateThread(function() AddTextEntry("FACES_WARNH2", "Nice title") AddTextEntry("QM_NO_0", "Cool message") AddTextEntry("QM_NO_3", "Cool message 2") while true do - Citizen.Wait(0) + Wait(0) DrawFrontendAlert("FACES_WARNH2", "QM_NO_0", 3, 3, "QM_NO_3", 2, -1, false, "FM_NXT_RAC", "QM_NO_1", true, 10) end end) diff --git a/HUD/ShowCrewIndicatorOnBlip.md b/HUD/ShowCrewIndicatorOnBlip.md index 30b13ad5d..2381fbcc5 100644 --- a/HUD/ShowCrewIndicatorOnBlip.md +++ b/HUD/ShowCrewIndicatorOnBlip.md @@ -9,7 +9,7 @@ aliases: ["0xDCFB5D4DB8BF367E", "SET_BLIP_CREW"] void SHOW_CREW_INDICATOR_ON_BLIP(Blip blip, BOOL toggle); ``` -Enables or disables the blue half circle ![](https://i.imgur.com/iZes9Ec.png) around the specified blip on the left side of the blip. This is used to indicate that the player is in your crew in GTA:O. Color is changeable by using [`SET_BLIP_SECONDARY_COLOUR`](#_0x14892474891E09EB). +Enables or disables the blue half circle ![](https://r2.fivemanage.com/qFztShHCe1bhCDvTI4vxv/image_2024-08-24_103401672.png) around the specified blip on the left side of the blip. This is used to indicate that the player is in your crew in GTA:O. Color is changeable by using [`SET_BLIP_SECONDARY_COLOUR`](#_0x14892474891E09EB). To toggle the right side of the circle use: [`SHOW_FRIEND_INDICATOR_ON_BLIP`](#_0x23C3EB807312F01A). diff --git a/HUD/ShowFriendIndicatorOnBlip.md b/HUD/ShowFriendIndicatorOnBlip.md index 918cb1079..314100082 100644 --- a/HUD/ShowFriendIndicatorOnBlip.md +++ b/HUD/ShowFriendIndicatorOnBlip.md @@ -9,7 +9,7 @@ aliases: ["0x23C3EB807312F01A", "SET_BLIP_FRIEND"] void SHOW_FRIEND_INDICATOR_ON_BLIP(Blip blip, BOOL toggle); ``` -Highlights a blip by a half cyan circle on the right side of the blip. ![](https://i.imgur.com/FrV9M4e.png) Indicating that that player is a friend (in GTA:O). This color can not be changed. +Highlights a blip by a half cyan circle on the right side of the blip. ![](https://r2.fivemanage.com/qFztShHCe1bhCDvTI4vxv/image_2024-08-24_103144274.png) Indicating that that player is a friend (in GTA:O). This color can not be changed. To toggle the left side (crew member indicator) of the half circle around the blip, use: [`SHOW_CREW_INDICATOR_ON_BLIP`](#_0xDCFB5D4DB8BF367E). diff --git a/HUD/StartGpsCustomRoute.md b/HUD/StartGpsCustomRoute.md index 5712972ed..6ca981f05 100644 --- a/HUD/StartGpsCustomRoute.md +++ b/HUD/StartGpsCustomRoute.md @@ -15,7 +15,7 @@ The GPS custom route works like the GPS multi route, except it does not follow r **Example result:** -![](https://i.imgur.com/BDm5pzt.png) +![](https://r2.fivemanage.com/qFztShHCe1bhCDvTI4vxv/Screenshot%202024-08-24%20102747.png) ## Parameters * **hudColor**: The HUD color of the GPS path. diff --git a/HUD/StartGpsMultiRoute.md b/HUD/StartGpsMultiRoute.md index 8e1908741..aaafac430 100644 --- a/HUD/StartGpsMultiRoute.md +++ b/HUD/StartGpsMultiRoute.md @@ -17,7 +17,7 @@ Works independently from the player-placed waypoint and blip routes. **Example result:** -![](https://i.imgur.com/ZZHQatX.png) +![](https://r2.fivemanage.com/qFztShHCe1bhCDvTI4vxv/Screenshot%202024-08-24%20102634.png) ## Parameters * **hudColor**: The HUD color of the GPS path. diff --git a/MISC/AddStuntJumpAngled.md b/MISC/AddStuntJumpAngled.md index 6739dd826..f82d46af1 100644 --- a/MISC/AddStuntJumpAngled.md +++ b/MISC/AddStuntJumpAngled.md @@ -102,7 +102,7 @@ local stuntjump = AddStuntJumpAngled( print("New stunt jump added, id: " .. stuntjump) -Citizen.CreateThread(function() +CreateThread(function() while true do Wait(0) DrawLine(data.entry.leftbottom, data.entry.righttop, 255, 255, 255, 255) diff --git a/MISC/GetFrameCount.md b/MISC/GetFrameCount.md index 4240939da..7ed25c8d5 100644 --- a/MISC/GetFrameCount.md +++ b/MISC/GetFrameCount.md @@ -16,7 +16,7 @@ The number of the current frame being displayed. ## Examples ```lua -- Create a thread -Citizen.CreateThread(function() +CreateThread(function() -- Loop forever while true do -- Get the number of the current frame being displayed diff --git a/MISC/GetFrameTime.md b/MISC/GetFrameTime.md index 4788b7d59..96f5bba5e 100644 --- a/MISC/GetFrameTime.md +++ b/MISC/GetFrameTime.md @@ -18,7 +18,7 @@ The frame time (in seconds) of the last frame. ## Examples ```lua local time1 = GetGameTimer() -Citizen.Wait(0) +Wait(0) -- Prints for example 0.01253530010581 at around 90 FPS print(GetFrameTime()) diff --git a/MISC/SetSuperJumpThisFrame.md b/MISC/SetSuperJumpThisFrame.md index c489f48e5..a8f9471c0 100644 --- a/MISC/SetSuperJumpThisFrame.md +++ b/MISC/SetSuperJumpThisFrame.md @@ -19,13 +19,13 @@ It basically OR's a flag for a single frame, allowing the ped to perform a super ## Examples ```lua -Citizen.CreateThread(function() +CreateThread(function() while true do SetSuperJumpThisFrame(PlayerId()) -- Try enabling the two down below if you also want invincibility and no ragdoll effects --SetPlayerInvincible(PlayerId(), true) --SetPedCanRagdoll(PlayerPedId(), false) - Citizen.Wait(0) + Wait(0) end end) ``` \ No newline at end of file diff --git a/NETWORK/NetworkIsInParty.md b/NETWORK/NetworkIsInParty.md index 4721fc56f..ef31758f2 100644 --- a/NETWORK/NetworkIsInParty.md +++ b/NETWORK/NetworkIsInParty.md @@ -11,10 +11,7 @@ BOOL NETWORK_IS_IN_PARTY(); ``` Note according to IDA TU27 X360(Console), This native & 'NETWORK_IS_PARTY_MEMBER' both jump to the same location. -Side note: This location just stops where it's at once jumped to. -Screenshot for side note, -h t t p ://i.imgur.com/m2ci1mF.png -h t t p://i.imgur.com/Z0Wx2B6.png +Side note: This location just stops where it's at once jumped to. ``` ## Return value diff --git a/NETWORK/NetworkIsPartyMember.md b/NETWORK/NetworkIsPartyMember.md index 34de479dc..3d9b44619 100644 --- a/NETWORK/NetworkIsPartyMember.md +++ b/NETWORK/NetworkIsPartyMember.md @@ -11,10 +11,7 @@ BOOL NETWORK_IS_PARTY_MEMBER(int* networkHandle); ``` Note according to IDA TU27 X360(Console), This native & 'NETWORK_IS_PARTY_MEMBER' both jump to the same location. -Side note: This location just stops where it's at once jumped to. -Screenshot for side note, -h t t p ://i.imgur.com/m2ci1mF.png -h t t p://i.imgur.com/Z0Wx2B6.png +Side note: This location just stops where it's at once jumped to. ``` ## Parameters diff --git a/OBJECT/CreateObject.md b/OBJECT/CreateObject.md index abb25061d..9b662ba6c 100644 --- a/OBJECT/CreateObject.md +++ b/OBJECT/CreateObject.md @@ -32,7 +32,7 @@ if not HasModelLoaded(modelHash) then RequestModel(modelHash) while not HasModelLoaded(modelHash) do - Citizen.Wait(1) + Wait(1) end end diff --git a/OBJECT/FixObjectFragment.md b/OBJECT/FixObjectFragment.md index 1b3a8cb88..4b1bd61dd 100644 --- a/OBJECT/FixObjectFragment.md +++ b/OBJECT/FixObjectFragment.md @@ -31,7 +31,7 @@ RegisterCommand("fixobject", function(source, args, rawCommand) if not HasModelLoaded(modelHash) then RequestModel(modelHash) while not HasModelLoaded(modelHash) do - Citizen.Wait(1) + Wait(1) end end diff --git a/OBJECT/GetRayfireMapObjectAnimPhase.md b/OBJECT/GetRayfireMapObjectAnimPhase.md index b39bd6a25..49d7fbde0 100644 --- a/OBJECT/GetRayfireMapObjectAnimPhase.md +++ b/OBJECT/GetRayfireMapObjectAnimPhase.md @@ -28,19 +28,19 @@ local handle2 = GetRayfireMapObject(7.25, -656.98, 17.14, 50.0, "des_finale_vaul SetStateOfRayfireMapObject(handle, 4) -- set to pre-start state SetStateOfRayfireMapObject(handle2, 4) -- set to pre-start state -Citizen.Wait(100) +Wait(100) SetStateOfRayfireMapObject(handle, 6) -- set to start animation state. SetStateOfRayfireMapObject(handle2, 6) -- set to start animation state. -Citizen.CreateThread(function() - Citizen.Wait(10) +CreateThread(function() + Wait(10) while GetRayfireMapObjectAnimPhase(handle) > 0.0 do - Citizen.Wait(0) + Wait(0) end print("Animation 1 is done!") while GetRayfireMapObjectAnimPhase(handle2) > 0.0 do - Citizen.Wait(0) + Wait(0) end print("Animation 2 is done!") end) diff --git a/OBJECT/IsPointInAngledArea.md b/OBJECT/IsPointInAngledArea.md index ad7a843d1..6bd141a15 100644 --- a/OBJECT/IsPointInAngledArea.md +++ b/OBJECT/IsPointInAngledArea.md @@ -13,10 +13,6 @@ An **angled area** is an X-Z oriented rectangle with three parameters: 2. **extent**: the mid-point of opposite base edge on the other Z; 3. **width**: the length of the base edge; (named derived from logging strings ``CNetworkRoadNodeWorldStateData``). -The oriented rectangle can then be derived from the direction of the two points (``norm(origin - extent)``), its orthonormal, and the width, e.g: -1. [golf_mp](https://i.imgur.com/JhsQAK9.png) -2. [am_taxi](https://i.imgur.com/TJWCZaT.jpg) - ## Parameters * **xPos**: The x coordinate. * **yPos**: The y coordinate. diff --git a/PATHFIND/SetGpsDisabledZoneAtIndex.md b/PATHFIND/SetGpsDisabledZoneAtIndex.md index 5f3ecb069..79765a71a 100644 --- a/PATHFIND/SetGpsDisabledZoneAtIndex.md +++ b/PATHFIND/SetGpsDisabledZoneAtIndex.md @@ -13,13 +13,6 @@ Disables the GPS route displayed on the minimap while within a certain zone (are You can clear the disabled zone with CLEAR_GPS_DISABLED_ZONE_AT_INDEX. -**Setting a waypoint at the same coordinate:** - -Disabled Zone: [https://i.imgur.com/P9VUuxM.png](https://i.imgur.com/P9VUuxM.png) - -Enabled Zone (normal): [https://i.imgur.com/BPi24aw.png](https://i.imgur.com/BPi24aw.png) - - ## Parameters * **x1**: X coordinate of first vector. * **y1**: Y coordinate of first vector. diff --git a/PED/RegisterPedheadshotTransparent.md b/PED/RegisterPedheadshotTransparent.md index 52624c9b4..c32851368 100644 --- a/PED/RegisterPedheadshotTransparent.md +++ b/PED/RegisterPedheadshotTransparent.md @@ -11,9 +11,6 @@ int REGISTER_PEDHEADSHOT_TRANSPARENT(Ped ped); Similar to REGISTER_PEDHEADSHOT but creates a transparent background instead of black. -**Result of the example code:** -[https://i.imgur.com/iHz8ztn.png](https://i.imgur.com/iHz8ztn.png) - ## Parameters * **ped**: A ped handle. diff --git a/PED/SetPedDensityMultiplierThisFrame.md b/PED/SetPedDensityMultiplierThisFrame.md index 2129ce231..4d0088e9e 100644 --- a/PED/SetPedDensityMultiplierThisFrame.md +++ b/PED/SetPedDensityMultiplierThisFrame.md @@ -18,10 +18,10 @@ void SET_PED_DENSITY_MULTIPLIER_THIS_FRAME(float multiplier); -- 0.0 means no peds, while 1.0 indicates the regular density of peds. local pedsDensityFactor = 0.0 -Citizen.CreateThread(function() +CreateThread(function() while true do SetPedDensityMultiplierThisFrame(pedsDensityFactor) - Citizen.Wait(0) + Wait(0) end end) ``` diff --git a/PLAYER/RestorePlayerStamina.md b/PLAYER/RestorePlayerStamina.md index d9017f409..7a2b0df3e 100644 --- a/PLAYER/RestorePlayerStamina.md +++ b/PLAYER/RestorePlayerStamina.md @@ -15,10 +15,10 @@ Adds a percentage to a players stamina ## Examples ```lua -Citizen.CreateThread(function() +CreateThread(function() while true do RestorePlayerStamina(PlayerId(), 0.3) - Citizen.Wait(15000) -- 15 seconds + Wait(15000) -- 15 seconds end end) ``` diff --git a/PLAYER/StartPlayerTeleport.md b/PLAYER/StartPlayerTeleport.md index 11461202f..85fe73575 100644 --- a/PLAYER/StartPlayerTeleport.md +++ b/PLAYER/StartPlayerTeleport.md @@ -33,7 +33,7 @@ local coords = vector3(100.0, 100.0, 50.0) StartPlayerTeleport(PlayerId(), coords.x, coords.y, coords.z, 0.0, false, true, true) while IsPlayerTeleportActive() do - Citizen.Wait(0) + Wait(0) end --- If you would want to make 100% sure the ped is on the ground here you would have to do some additional checks here diff --git a/STREAMING/NewLoadSceneStart.md b/STREAMING/NewLoadSceneStart.md index 66df808f9..3b5668f5e 100644 --- a/STREAMING/NewLoadSceneStart.md +++ b/STREAMING/NewLoadSceneStart.md @@ -35,7 +35,7 @@ function func_8(vParam0) return (-(Sin(vParam0.z)) * Cos(vParam0.x)), (Cos(vParam0.z) * Cos(vParam0.x)), Sin(vParam0.x) end -Citizen.CreateThread(function() +CreateThread(function() local vLocal_43 = vector3(1691.228, 3251.785, 44.2574) local vLocal_44 = vector3(2.5652, 0, -4.1481) @@ -44,7 +44,7 @@ Citizen.CreateThread(function() local gameTimer = GetGameTimer() while not IsNewLoadSceneLoaded() and (GetGameTimer() - gameTimer < 20) do - Citizen.Wait(0) + Wait(0) end NewLoadSceneStop() diff --git a/STREAMING/PrefetchSrl.md b/STREAMING/PrefetchSrl.md index 4842a21bc..62206a4af 100644 --- a/STREAMING/PrefetchSrl.md +++ b/STREAMING/PrefetchSrl.md @@ -22,7 +22,7 @@ https://pastebin.com/zd9XYUWY : here is the content of a SRL file opened with co ```lua PrefetchSrl('GTAO_INTRO_MALE') while not IsSrlLoaded() do - Citizen.Wait(100) + Wait(100) end BeginSrl() ``` \ No newline at end of file diff --git a/STREAMING/SwitchToMultiSecondpart.md b/STREAMING/SwitchToMultiSecondpart.md index db6fd0eed..3cbef3b83 100644 --- a/STREAMING/SwitchToMultiSecondpart.md +++ b/STREAMING/SwitchToMultiSecondpart.md @@ -20,7 +20,7 @@ RegisterCommand("switchPlayer", function() if IsPlayerSwitchInProgress() then return end local ped = PlayerPedId() SwitchToMultiFirstPart(ped, 0, 1) - Citizen.Wait(5000) + Wait(5000) SwitchToMultiSecondPart(ped) end, false) ``` diff --git a/TASK/GetScriptTaskStatus.md b/TASK/GetScriptTaskStatus.md index d77baaa85..9042e7f60 100644 --- a/TASK/GetScriptTaskStatus.md +++ b/TASK/GetScriptTaskStatus.md @@ -37,12 +37,12 @@ local playerPed = PlayerPedId() local coords = GetOffsetFromEntityInWorldCoords(playerPed, 0.0, 6.0, 0.0) TaskGoStraightToCoord(playerPed, coords, 1.0, 5000, GetEntityHeading(playerPed), 0.15) -Citizen.CreateThread(function() +CreateThread(function() while true do local taskStatus = GetScriptTaskStatus(PlayerPedId(), "SCRIPT_TASK_GO_STRAIGHT_TO_COORD") print(taskStatus) if taskStatus == 7 then print("task was finished!"); break end - Citizen.Wait(250) + Wait(250) end end) ``` diff --git a/TASK/TaskWanderInArea.md b/TASK/TaskWanderInArea.md index 5d7fe037f..96c32eb9f 100644 --- a/TASK/TaskWanderInArea.md +++ b/TASK/TaskWanderInArea.md @@ -29,7 +29,7 @@ Use `GetIsTaskActive(ped, 222)` to check if the ped is still wandering the area. local model = `a_c_panther` RequestModel(model) while not HasModelLoaded(model) do - Citizen.Wait(0) + Wait(0) end -- Spawn a panther at current coordinates @@ -44,6 +44,6 @@ TaskWanderInArea(ped, coords.x, coords.y, coords.z, 100.0, 2, 10.0) -- Check if the ped is wandering -- Tasks don't trigger instantly, so wait a bit before checking -Citizen.Wait(1000) +Wait(1000) print(GetIsTaskActive(ped, 222)) -- 1 ``` diff --git a/VEHICLE/CreateMissionTrain.md b/VEHICLE/CreateMissionTrain.md index 1511818e3..8743e587a 100644 --- a/VEHICLE/CreateMissionTrain.md +++ b/VEHICLE/CreateMissionTrain.md @@ -69,7 +69,7 @@ function loadTrainModels() RequestModel(modelHashKey) -- load the model -- wait for the model to load while not HasModelLoaded(modelHashKey) do - Citizen.Wait(500) + Wait(500) end end end diff --git a/VEHICLE/SetBikeOnStand.md b/VEHICLE/SetBikeOnStand.md index 190f6b500..0b35b2e03 100644 --- a/VEHICLE/SetBikeOnStand.md +++ b/VEHICLE/SetBikeOnStand.md @@ -14,7 +14,6 @@ Only works on bikes, both X and Y work in the -1 - 1 range. X forces the bike to turn left or right (-1, 1) Y forces the bike to lean to the left or to the right (-1, 1) Example with X -1/Y 1 -http://i.imgur.com/TgIuAPJ.jpg ``` ## Parameters diff --git a/VEHICLE/SetSpecialFlightModeAllowed.md b/VEHICLE/SetSpecialFlightModeAllowed.md index 8d78a7269..e89b241c0 100644 --- a/VEHICLE/SetSpecialFlightModeAllowed.md +++ b/VEHICLE/SetSpecialFlightModeAllowed.md @@ -19,7 +19,7 @@ Allows locking the hover/non-hover mode of a vehicle, such as the flying mode of ```lua -- Checks the altitude of the Deluxo and locks its current mode when above 150 meters. -- If the Deluxo is in flying mode at this altitude, it will be unable to switch to driving mode, and vice versa. -Citizen.CreateThread(function() +CreateThread(function() local coords -- Variable to store the vehicle's coordinates. local vehicle -- Variable to store the vehicle entity. @@ -30,7 +30,7 @@ Citizen.CreateThread(function() coords = GetEntityCoords(vehicle) -- Get the current coordinates of the vehicle. end - Citizen.Wait(0) -- Wait for the next frame. + Wait(0) -- Wait for the next frame. until coords.z >= 150.0 -- Keep looping until the Deluxo is above 150 meters. diff --git a/VEHICLE/SetVehicleDropsMoneyWhenBlownUp.md b/VEHICLE/SetVehicleDropsMoneyWhenBlownUp.md index 73b2e4847..f53d6b0bc 100644 --- a/VEHICLE/SetVehicleDropsMoneyWhenBlownUp.md +++ b/VEHICLE/SetVehicleDropsMoneyWhenBlownUp.md @@ -12,7 +12,6 @@ void SET_VEHICLE_DROPS_MONEY_WHEN_BLOWN_UP(Vehicle vehicle, BOOL toggle); ``` Money pickups are created around cars when they explode. Only works when the vehicle model is a car. A single pickup is between 1 and 18 dollars in size. All car models seem to give the same amount of money. youtu.be/3arlUxzHl5Y -i.imgur.com/WrNpYFs.jpg ``` ## Parameters diff --git a/VEHICLE/SetVehicleXenonLightsColor.md b/VEHICLE/SetVehicleXenonLightsColor.md index 5daebf3b9..170646d70 100644 --- a/VEHICLE/SetVehicleXenonLightsColor.md +++ b/VEHICLE/SetVehicleXenonLightsColor.md @@ -18,7 +18,7 @@ You can find the list of colors and ids here: [_GET_VEHICLE_HEADLIGHTS_COLOUR](# * **color**: The paint index. **Result**: -> ![](https://i.imgur.com/yV3cpG9.png) +![xenon](https://r2.fivemanage.com/qFztShHCe1bhCDvTI4vxv/Screenshot%202024-08-24%20095352.png) ## Examples