Commit Graph

1742 Commits

Author SHA1 Message Date
Arthur
12906d0365 Add Return Value Support for Script Functions (#3479)
* Add Return Value Support for Script Functions
* Removed address-of operator on instruction_pointer parameter, as sol is pass-by-value.
* Fixed reset_session_data & start_creator_script
* Added support for Vector3 and updated casting for bool type for proper conversion to Lua boolean
* Updated documentation for scr_function
* Added get_int method and updated param names for script functions
* Fix #3497 graceful landing not saved.
* Added a check in view_lsc to see if the vehicle can accept clan logos first.
* Fixed vehicle clan logo SP bypass not working properly.
* Fixed COPY VEHICLE not giving persist_car_service::spawn_vehicle_json the target's ped so it can copy their clan logo and not ours.
Fixed spawn_vehicle_json calling add_clan_logo_to_vehicle with our logo and not the ped parameter's logo.
* Added Clone Player Car.
* Fixed has_clan_logo check in view_lsc being given the wrong parameter.

---------

Co-authored-by: gir489 <100792176+gir489returns@users.noreply.github.com>
2024-08-06 14:46:48 +02:00
Mr-X-GTA
6ebd3d753f Misc stuff (#3515)
* feat(hotkeys): add support for mouse buttons
* feat: show message box with version note if pattern scan fails
* feat(exception handler): set destination register to 0 on move instructions
* feat: update r* admin list
* fix: fix spawned vehicle not being deleted when using bring player
* fix: fix exceptions when using bring player
* fix: fix gravity gun not working while requesting control
* fix: dont request control of entities that are not CPhysical
* fix: fix take_control_of not requesting control if timeout is 0
* fix: fix crash when executing commands on all players
* fix: fix cmd executor style being applied to all windows if command is invalid
* fix: fix rare exceptions in esp::draw_player
* fix: fix exceptions when using gravity gun on objects or dying with some models
* fix: fix incorrect reading of m_model_type
2024-08-05 09:15:42 +02:00
gir489
0ea9fabf69 Removed errant waypoint icons in get_objective_location. (#3509) 2024-08-03 18:19:43 +02:00
Quentin
d93fb733ca fix(RID join): crash on join #3474 (#3511) 2024-08-03 18:14:42 +02:00
Вирусиен
71c3c2d2e4 Add more colors to LS Customs menu (#3484) 2024-08-02 10:09:26 +02:00
gir489
710edb87a7 Refactor how blips work (#3473) 2024-07-30 22:11:49 +02:00
lonelybud
64700270bf fix gui scale slider (#3466) 2024-07-29 11:23:38 +02:00
Andreas Maerten
5c20591ecb refactor: username and RID join input fields join a player on enter (#3464) 2024-07-28 23:34:28 +02:00
Andreas Maerten
2c20b0b863 revert: Tracked player update rate change (#3463) 2024-07-28 23:33:47 +02:00
Andreas Maerten
1458c1f332 feat(carmod_shop): don't influence stats implicitly (#3462)
Closes #3359
2024-07-28 22:37:18 +02:00
CringeArab
61c32b24f6 Re-add kick host during join (#3450) 2024-07-28 22:18:00 +02:00
gir489
c6ce5da315 Added script patch to stop NPCs from putting bounties on us. (#3461) 2024-07-28 21:54:29 +02:00
Mr-X-GTA
cbcdcc244d fix: fix chat (#3454) 2024-07-27 21:43:45 +02:00
gir489
e1c488fd1f Disable dupe detector in freemode. (#3449)
* Fixed freemode detecting duplicate vehicles and trying to emit DUPE_DETECT metric.

* Added unlikely attribute to allow_all_vehicles_in_heists.
2024-07-27 21:01:19 +02:00
gir489
f3ac43b04f Fixed mission cars not being properly cleaned up. (#3434) 2024-07-26 23:29:49 +02:00
CringeArab
61c8dea805 Don't mark players in missions as joinable (#3444)
* do not mark missions as joinable

* disabled join button
2024-07-26 23:27:50 +02:00
gir489
cd74dff858 Fixed aimbot trying to aim at peds inside our current vehicle. (#3443) 2024-07-26 23:10:22 +02:00
gir489
879896ff62 Fixed TUNABLE_BASE_ADDRESS being incorrect. (#3441) 2024-07-26 23:10:06 +02:00
gir489
6e8c2106d4 Added an option to the aimbot to make it retrieve the max distance for the current weapon. (#3430)
Fixed an exception coming from spoof_host_token if a pointer was invalid.
Fixed the aimbot targeting "friendly NPCs" who were for some reason marked as hated NPC relationships.
2024-07-26 11:07:28 +02:00
Arthur
eb68394382 feat(debug): Add Tunables Tab (#3431)
Added a Tunables tab similar to Globals/Locals that can be used to read and write tunables by inputting their unsigned/signed or hexadecimal hash, as well as their pre-joaat name. It also displays the offset of the given tunable.

Removed the animation players in the Debug tab as the one in the Self tab makes them redundant.
2024-07-26 11:05:47 +02:00
lonelybud
afd7bcf8c3 fix(Weapon Combo Boxes): use unique ids for weapon combos (#3428) 2024-07-25 14:08:41 +02:00
Andreas Maerten
a98411bc82 feat: Patch game self report sender (#3422)
Fixes #3401
2024-07-24 23:46:47 +02:00
lonelybud
21929ee421 fix #3406 & refactor bounds check (#3419)
* Revert "change DragInt to SliderInt (#3378)"

This reverts outfit changes from commit c8dd29075c.

* Revert "Redesigned outfit editor (#3376)"

This reverts commit 5c6f7ae8c5.

* fix components text and draw should not be -1
2024-07-24 21:27:06 +02:00
gir489
7e326d129e Fixed aimbot snapping to weird angles when first grabbing a target with low FoV. (#3416) 2024-07-24 09:16:04 +02:00
Andreas Maerten
847799d80f fix(GtaDataService): weapon and weapon component caches aren't wiped properly on rebuild (#3414) 2024-07-23 23:54:57 +02:00
gir489
9413c30f44 fix(Aimbot/Triggerbot): crash could occur if the user had Trust Friends on when aimbotting (#3413) 2024-07-23 21:23:39 +02:00
Andreas Maerten
7ce99f9ef6 fix(GtaDataService): Rebuild Cache button not working (#3411)
Changes:
- Switch from pointer singleton to pre-instanced singleton
- Added default constructor to cache_file object
- Fixed an issue where maps and vectors would not be cleared before (re)generating a cache.
2024-07-23 20:15:19 +02:00
gir489
15d92940be Fixed friendly NPCs being incorrectly targeted by the aimbot/triggerbot. (#3412)
Added friends check to the aimbot/triggerbot.
2024-07-23 20:13:51 +02:00
Quentin
bba720f059 fix crash on reinject (#3409)
Co-authored-by: gir489 <100792176+gir489returns@users.noreply.github.com>
2024-07-23 18:19:39 +02:00
Arthur
f6a6f5dd86 Refactor Debug Threads & Expose More Functions (#3408)
- Added a search box for the script names in Debug -> Threads.
- Added `is_session_started` and `force_script_on_player` functions to the Lua network class.
- Added `is_active` and `start_launcher_script` functions to the Lua script class.
- Moved `view_stat_editor.cpp` to `src/views/network` from `src/views/settings`.
- Added a help text for directly editing the sliders in outfit editor.
2024-07-23 15:34:30 +02:00
gir489
f66f96295b Project include cleanup (#3404) 2024-07-23 13:40:30 +02:00
Quentin
4695f621e5 feat(debug): dump_entry_points (#3405) 2024-07-23 12:59:17 +02:00
Andreas Maerten
9885b68014 fix(FontMgr): also keep in mind game language when generating font texture (#2892) 2024-07-23 08:47:38 +02:00
Mr-X-GTA
286a54045f fix(kicks): fix script host kick (#3392) 2024-07-22 11:17:36 +02:00
DayibBaba
6a76831b8e Partial revert of changes to Superherofly (#3389) 2024-07-22 10:18:45 +02:00
CringeArab
326a1754ff Reaction translation and single kick reaction (#3380) 2024-07-22 10:17:58 +02:00
Arthur
a44912dbd8 feat(lua): Expose Script Patches & Functions (#3393) 2024-07-22 10:16:48 +02:00
gir489
1bb96fb562 Redesigned triggerbot (#3396)
* Redesigned triggerbot to respect the same configuration the user has setup for the aimbot.
Triggerbot will not force fire the player's current weapon instead of just silently spawning a bullet.

* Delay grabbing player velocity until after we've confirmed the target velocity has at least one tick of information to use.

* Fixed some mission peds not being aimbotted/triggerbotted when using only enemies.
Removed unused global.

* Refactored enemy checks to only run the enemy determination code if the user has it enabled.
2024-07-22 10:16:16 +02:00
DayibBaba
8680d72ecb Fixed invalid command crashing game (#3388) 2024-07-20 12:26:51 +02:00
gir489
c8dd29075c Improved aimbot enemy detection and change DragInt to SliderInt (#3378)
* Added aimbot check for peds we are in combat with via scripts.
* Changed DragInt into SliderInt.
* Fixed no_sway not being saved to config.
* Fixed aimbot snapping to an invalid angle when the target was first grabbed.
2024-07-18 21:58:21 +02:00
gir489
5c6f7ae8c5 Redesigned outfit editor (#3376) 2024-07-18 09:01:26 +02:00
gir489
c8887e1d56 Fixed typo on no_sway command variable(#3373) 2024-07-18 08:59:49 +02:00
Quentin
b1f623decd refactor: aimbot (#2902)
* Fixed ped flags system not allowing Michael's flag to be set.
* Refactored is_a_ped_type_we_dont_care_about logic to not be extraneous and inefficient.
* Fixed completely broken and wrong FoV calculations.
* No Sway patch.

Co-authored-by: gir489 <100792176+gir489returns@users.noreply.github.com>
2024-07-17 23:17:18 +02:00
maybegreat48
90f7b0710c Update to b3274 (#3367)
* chore: update metadata version
* Use a more stringent signature that will land in an obtuse area but be guaranteed to not be decrypted later.
* Replace volatile signature with a more generic signature.

Co-authored-by: gir489 <100792176+gir489returns@users.noreply.github.com>
2024-07-17 22:15:47 +02:00
gir489
1ae48b191b Refactor no_idle_kick to not store the address of the tunables. (#3363)
* Refactor no_idle_kick to not store the address of the tunables.
* Added sanity checks to the tunable pointers.
2024-07-17 14:13:10 +02:00
DayibBaba
271ba08093 YimCLI (#3348)
* Better command suggestions
* Suggestions work at any location in a written command
* Multiple commands in a single command
* Added spectate command & highlight on suggestion selection
* Added no suggestions warning
* Added Kamikaze & send squad & join player command
2024-07-17 14:11:09 +02:00
CringeArab
a25e0e7d0a removing multiplex-sessions from matchmaking (#3357) 2024-07-15 13:01:22 +02:00
gir489
e23583583f Closes #3345 (#3346) 2024-07-14 17:10:40 +02:00
kikkin_yo_azzez
360c449c63 more player stats lua bindings (#3325)
get_player_money
get_player_wallet
get_player_bank
get_player_language_id
get_player_language_name
2024-07-13 13:41:58 +02:00
gir489
47290de1bd Fixes #3341 (#3342) 2024-07-13 13:25:19 +02:00