81 Commits

Author SHA1 Message Date
Quentin
d6027e5935
refactor: aimbot (#2902)
Some checks are pending
Nightly Build / Check Recent Commit (push) Successful in 30s
Nightly Build / Build Nightly (push) Waiting to run
Nightly Build / Recreate Release (push) Blocked by required conditions
* 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
DayibBaba
2f9194e49a
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
DayibBaba
b90ce402a1
Expand Cmd Executor (#2884)
Some checks failed
Nightly Build / Check Recent Commit (push) Failing after 5s
Nightly Build / Build Nightly (push) Has been skipped
Nightly Build / Recreate Release (push) Has been skipped
Added additional commands to showcase suggestion system.
Added a new util file to operate on strings in a unified manner.
Changed input_text_with_hint component to allow for more flags than one.
Added more player seeking features to player_service such as get_by_name()

* Fixed out of bounds suggestion navigation

* Added suggestions to spawn_vehicle command

* Created command play_animation

* Added suggestion support for multi commands

using a semicolon allows for more commands to fire at once, and is now supported with appropriate suggestions

* Added rotation to teleport_to_location command

* Fixed stupid error & added multiple raw command auto fills

* Added sanity checks to avoid nullpointers

* Added context identifiers to player commands

* Added temporary self inclusion to player commands

Needs translation on the translations repo

* Applied rudamentary reviews

* Experimental proxy globalization

* Fixed argument sensitivity on spawn vehicle

* Scrapped 2 ideas (maybe for future)

* Added true and false suggestions to bool commands

---------

Co-authored-by: Andreas Maerten <24669514+Yimura@users.noreply.github.com>
Co-authored-by: gir489 <100792176+gir489returns@users.noreply.github.com>
2024-07-13 00:26:34 +02:00
Mr-X-GTA
3bffd92839
Bug fixes and improvements (#3324)
Some checks failed
Nightly Build / Check Recent Commit (push) Failing after 4m28s
Nightly Build / Build Nightly (push) Has been skipped
Nightly Build / Recreate Release (push) Has been skipped
* feat: handle exceptions on jumps correctly
* fix(player_db): fix invite player
* fix: remove old stuff
* fix(script__vm): fix script vm crashes
* remove debug code
* fix(scr_globals): fix globals and locals
2024-07-10 13:43:39 +02:00
maybegreat48
61ddba1634
Update for b3258 (#3288)
* fix: update script names
* fix: use original chat sender
* feat(tunables): fix tunable service
* fix: explode patch (thanks @Mr-X-GTA)
* fix: fix compile errors
* fix: use unique_ptr
* Added 1.69 vehicles.
* Added new weather for 1.69 and updated stack sizes.
* Fixed garage.
* Made Unload button a developer-only feature. (Disabled on Release)
* Redesigned Network tab to not be a giant mess.
* Added new json_serializer code from @tupoy-ya.
* chore: correct dependency

------

Co-authored-by: maybegreat48 <email@hostname>
Co-authored-by: Andreas Maerten <24669514+Yimura@users.noreply.github.com>
Co-authored-by: gir489returns <redacted@example.com>
2024-07-03 23:04:06 +02:00
maybegreat48
4589b87553
Menu revamp (#3274)
* Complete player and network UI redesign, meant to show all features instead of stuffing them into tiny boxes
* Added option to delete player vehicles
* Better clone player (now clones head blend too)
* Better host token spoofing, with an option to enter your own
* Better host token spoofing detection
* Better desync kick prot detections
* A script blocker for the entire session (per-player options will be added later)
* Added option to spoof data/DLC hashes
* Logging framework that allows developers to easily debug false positives
* Major protection improvements
2024-06-27 10:32:17 +02:00
maybegreat48
a218f84eed
Break game and protections (#3203) 2024-05-30 19:45:43 +02:00
CringeArab
64d187413f
fix: Fake ban message (#3141) 2024-05-19 20:42:29 +02:00
Muhammad007228
dada469c55
Less noticeable multi-kick => smart-kick (#3066) 2024-05-10 11:51:14 +02:00
Mr-X-GTA
9062491f1d
Fix player list crash (#3080)
* Fixed get_rockstar_id returning an incorrect type.
* Added more OOP usage of get_rockstar_id when applicable.
Co-authored-by: gir489returns <gir489returns@outlook.com>
2024-05-09 23:28:11 +02:00
maybegreat48
29f226b316
Assorted fixes (#3073)
* feat: unstuck more when removing blackscreen
* fix: make kicks more versatile
2024-05-09 11:05:56 +02:00
R.K
1b82c94d4d
Refactor of Player Wanted Level (#3070) 2024-05-08 10:24:00 +02:00
tiCkuhAr
dfca5c7567
Remove useless kicks (#3061) 2024-05-06 22:11:35 +02:00
R.K
1066aefa03
Start Script Activity Session Check (#3045) 2024-05-06 22:00:32 +02:00
gir489
ccb3591364
Added "Enable MK1 and MK2 Weapons" feature. (#3000) 2024-04-30 18:11:43 +02:00
gir489
79083e34f0
Fixed commands not working in single player. (#2980)
* Fixed commands not working in single player.

* Code review changes.
2024-04-27 16:10:35 +02:00
gir489
1fa3ef8a45
Added StartScriptBegin protection. (#2962)
* Refactored Script Event Logging to log to a file that's kept open, but flushed each event instead of spamming the console.
* Added Rockstar ID to the Script Event Logger.
2024-04-23 22:48:29 +02:00
Andreas Maerten
cba19d0c33
refactor!: Rewrite of the old notification service (#2866)
The main goal was improving the readability of the original code however some ugliness remains.

- Swapped from pointer singleton to instance singleton
- Actually make use of the alpha logic that used to be present
- Added a counter to notifications to indicate if something is being spammed
- Notification timeouts reset if they're sent to the queue again
2024-03-23 00:04:49 +01:00
Andreas Maerten
e07601347d
refactor: switch RAGE_JOAAT with string literal functions (#2806)
Why? Shorter to write and removes the macro usage

I used the following regex to find all occurrences:
```r
RAGE_JOAAT\("(.*?)"\)
```
then the following to replace it all:
```r
"$1"_J
```
2024-03-12 09:42:11 +01:00
Andreas Maerten
d4d504dca2
feat: Add menu onboarding to YimMenu (#2492) 2024-02-23 22:54:25 +01:00
Anvar
ad1dfc71d2
refactor: move Request Model logic to helper function (#2669) 2024-01-31 10:47:03 +01:00
Anvar
ee707c538b
Graceful Landing (#2660) 2024-01-28 15:17:26 +01:00
maybegreat48
1127e51a52
Optimizations (#2649)
* fix(Respawn): fix respawn in SP
* fix: re-enable bigobj
* fix: update creator's stack size
* fix: use BOOLs instead of bools
* fix(gitignore): hide .pyc files
2023-12-29 17:07:00 +01:00
gir489
e9fdc86239
Fixed unlockveh using the player id instead of ped (#2591)
* Fixed unlockveh command using the Player ID for the arguments instead of the Player Ped.

* Fixed lock/unlock vehicle door calls to use the eVehicleLockState enum.
2023-12-18 14:59:35 +01:00
Aure7138
8b62dadcd5
Update crossmap and natives.hpp to 3095. (#2565) 2023-12-15 16:01:57 +01:00
gir489
695a6dd20e
Fixes for b3095 (#2537)
* Refactored TRIGGER_SCRIPT_EVENT for the duplicate f_2 argument they added in 3095.
Fixed OOB gadget spam caused by the tow truck.
Increased max interiors in InteriorControl.
* Updated scripted_game_event.
* Update GTAV-Classes repo.
* Fixed locals for 3095.
* Bump project to Build 3095.
2023-12-14 00:56:40 +01:00
gir489
b7b901d77f
Fixed TRIGGER_SCRIPT_EVENT for 3095. (#2527) 2023-12-13 19:32:26 +01:00
Aure7138
e6c4a6a1d6
fix(player_command): execution failure (#2503) 2023-12-11 08:42:13 +01:00
thehorizon84
dc321104c4
feat: New world options + Request Gun Van anywhere (#2393)
+ World -> Gravity Editor (with presets for ease of use)
+ World -> Waypoint Beacon
+ World -> Objective Beacon
+ World -> Time And Weather -> Ground Snow
+ Self -> Mobile -> Request Gun Van (spawns the gun van right in front of you no matter where you are)
2023-11-08 23:16:10 +01:00
gir489
864e15a0bc
fix: Submarine crash and allowing empty JSON filenames to be saved (#2380) 2023-11-05 13:54:15 +01:00
gir489
37468ca7b0
Converted all static strings to translation keys. (#2284) 2023-10-20 18:24:44 +02:00
gir489
b28ce2188d
Fixed fillsnacks not working. (#2180) 2023-09-23 11:54:30 +02:00
gir489
afd3a5e943
Add Garage drop-down to Spawn PV menu (#2171)
* Fixed edge case where a garage that contained only banned vehicles would show if the user was using Spawn Clone.
Refactored a large portion of the garage code to be production ready.
Formatting changes.

* Added singular garage items to the m_garage setter like the Terrorbyte.

* Fixed is_blacklisted_vehicle returning an inverted condition.
Fixed Garage drop-down not updating properly.

* Separated out m_garage's setter into a ctor function.
Replaced the 4 singular garages that use an overloaded index with a define to be able to shift them easier when new properties are added.

* Removed obsolete and incorrect player.character_slot config entry.
Removed deprecated local_player.hpp.
Added self::char_slot that is guaranteed to be correct.

* Removed extraneous semi-colon.

* Added more stuff to fillsnacks.
Removed more extraneous usages of MPPLY_LAST_MP_CHAR.

* Added the vehicle's name to player info.

* Fixed get_property_garage_size returning the incorrect size for the facility.
Fixed get_static_property_name returning the Nightclub's name instead of Nightclub Service Entrance to maintain consistency with the Mechanic.
Fixed garage_slot_iterator not starting and ending at the correct indexes.

* Shifted the singular properties down one to compensate for the new math.

* Fixed backwards math on Terrorbyte and Nightclub B1.

* Fixed garage not being updated when the player moved the vehicle.

* Fixed backwards comments.
2023-09-22 23:16:33 +02:00
Andreas Maerten
43bf73ba56
fix(EmptySession): use translation in command label (#2112) 2023-09-10 22:24:13 +02:00
Andreas Maerten
956d8110a0
fix(MultiKick): Crash when calling CNetGamePlayer::is_host (#2106) 2023-09-09 11:32:55 +02:00
gir489
cf07cfec04
Redesigned Vehicle Spawn menus to have consistent features. (#2063)
Closes #2053
2023-08-31 15:43:55 +02:00
Andreas Maerten
4c6226d022
fix(MultiKick): check against player nullptr (#2057)
* fix(MultiKick): check player ptr before using it

* fix(Kick): guard other commands against nullptr player ptr
2023-08-29 23:58:44 +02:00
gir489
066f659cfe
Move all global indices into scr_globals.hpp. (#2018) 2023-08-24 22:06:50 +02:00
maybegreat48
5eead0436f
Huge protection improvements and other stuff (#1963)
* feat(protections): add a fuzzer
* feat(protections): improve protections
* feat(spoofing): add warning
* feat(world): force object cleanup
* fix(weapons): fix custom weapon code
* fix(weapons): fix for #1983
2023-08-19 13:01:08 +02:00
kbabrmover1995
a47af68384
Sending all kick methods (#1921) 2023-08-12 20:45:28 +02:00
gir489
e87931bf60
Added check for IS_VEHICLE_DOOR_DAMAGED in keep_vehicle_repaired. (#1933)
Fixed Selected Teleport not showing up in hotkeys menu.
Added Yim's Vehicle cleanup code from the halted PR.
2023-08-07 10:16:08 +02:00
Andreas Maerten
b7b13ac638
Disable path traversal for Project File/Folder and added Session Switch command (#1908) 2023-08-02 21:38:22 +02:00
MoneyDropLobby
bb9ea84862
chore: Use override keyword in commands to make sure virtual funcs are properly overwritten (#1897) 2023-08-01 11:10:14 +02:00
Andreas Maerten
96493b5a22
refactor!: Modify command argument handling and move on_ method to bool_command (#1826) 2023-07-26 22:22:40 +02:00
HCR-750F
f73c1bdc98
Fix crash reaction and add more translation key (#1850) 2023-07-26 18:26:09 +02:00
Rxann
0b2b32dc34
Added Empty lobby button (#1812) 2023-07-24 22:10:44 +02:00
Andreas Maerten
0289576677
fix(byte_patch): sometimes the page protections get modified between apply and restore: make sure the protections are fine for us to memcpy. (#1831)
* feat(BytePatch): add is_active member function
* fix(byte_patch): sometimes the page protections get modified between the apply and restore of the byte_patch, make sure the protections are fine for us to memcpy

Co-authored-by: Quentin E. / iDeath <xiaoxiao921@hotmail.fr>
2023-07-24 16:13:09 +02:00
Andreas Maerten
17d3ad7658
refactor: make window hook into a bool command (#1824) 2023-07-23 22:52:30 +02:00
maybegreat48
e7562bcdff
Improve protections and other random changes (#1803)
* feat(protections): better logging
* feat(protections): improve protections
* fix(globals): save all spoofing settings
2023-07-22 23:18:47 +02:00
Bugisoft
74ba7b6860
Custom Sky Color and unify some stuff (#1779) 2023-07-20 22:46:32 +02:00