190 Commits

Author SHA1 Message Date
gir489
254f64f1af
Added filtering system to prepare_metric_for_sending. (#3139) 2024-05-19 00:04:12 +02:00
R.K
059f831c52
Small Refactor of Session Bad Sport Spoofing (#3134) 2024-05-16 09:51:04 +02:00
gir489
a25476d918
Cleaned up log_node function. (#3130) 2024-05-15 23:49:56 +02:00
gir489
73120c6b94
Added file-based log to debug.packet_logs. (#3127) 2024-05-15 19:54:34 +02:00
lonelybud
b693509609
elegant crash complete protection (#3109) 2024-05-15 17:38:48 +02:00
maybegreat48
44269fcf35
Desync protection improvements (#3094) 2024-05-13 19:01:47 +02:00
maybegreat48
4ab201bd59
Hide vehicle godmode (#3103) 2024-05-13 17:21:34 +02:00
Mr-X-GTA
ef70781926
fix(script_event_handler): fix crash (#3105) 2024-05-13 00:45:57 +02:00
HCR-750F
f15cb312e7
feat: Chat translator (#2931) 2024-05-10 21:41:59 +02:00
Mr-X-GTA
86c63dfff5
Desync kick protection (#3086) 2024-05-10 21:09:10 +02:00
Muhammad007228
dada469c55
Less noticeable multi-kick => smart-kick (#3066) 2024-05-10 11:51:14 +02:00
Ryan
f44edb83a5
feat: Block Stand elegant crash (#3076) 2024-05-09 23:29:03 +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
Ryan
d65f7f2745
Fix the Radio Sync Fix (#3060) 2024-05-09 15:10:56 +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
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
R.K
d75bebd386
Allow Trusted Players & Friends to Request Control (#3047) 2024-05-06 20:15:53 +02:00
HCR-750F
a7934ba357
Add more translation keys (#3024) 2024-05-03 17:29:24 +02:00
gir489
e18efc6180
Fix multiple crashes. (#3035) 2024-05-03 17:28:21 +02:00
Ryan
9652ce70de
Radio Sync Fix (#2973) 2024-05-02 17:42:37 +02:00
gir489
d13b49ca0b
Refactor format money to use manual methods of comma addition. (#3020) 2024-05-01 23:30:25 +02:00
gir489
51ee53ee51
Fixed format_money not working. (#2969) 2024-04-24 21:14:41 +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
ca1e7e6b41
Give optimisation hints to compiler (#2929)
feat(invoker): add compiler hints
chore(get network event data): added translation TODO
feat(native hooks): add compiler hint to crashes
feat(render): add likely compiler hint to on_present
feat(thread pool): add compiler hints
Added hook likely/unlikely switches to debug/crash scenarios.
Added HEX_TO_UPPER call on the AC verifier offsets.
Added more fuzzer unlikely attributes.
Replaced some hard coded numbers with their unhashed _J variants.
Added more unlikely attributes to singleton initializer checks.
Added more likely/unlikely attributes to certain scenarios.
2024-04-22 19:48:22 +02:00
gir489
b1bf477d1f
Added formatting to money on HUD. (#2957) 2024-04-22 18:29:42 +02:00
gir489
8425cae0f6
Refactor m_rockstar_id into its proper type of a 64-bit signed integer. (#2901) 2024-03-31 21:11:52 +02:00
gir489
1f556a8c78
Redesigned the preview system entirely. (#2888) 2024-03-30 18:41:12 +01:00
gir489
21da47f3e5
Fixed gamer_handle_serialize/deserialize using the wrong sizes. (#2886) 2024-03-28 20:15:33 +01:00
gir489
4636ef8346
Unify rlGamerHandle code and fix chat inaccuracies. (#2883) 2024-03-27 21:43:31 +01:00
maybegreat48
7e7bcb155a
Refactor and fix send chat (#2864)
* feat(chat): refactor and fix send chat
* fix(chat): fixes
* fix(chat): fix team chat

Co-authored-by: DayibBaba <79384354+DayibBaba@users.noreply.github.com>
2024-03-23 17:37:51 +01: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
gir489
ae27173b12
Extra give control checks (#2847)
Closes #2841
Closes #2088
2024-03-19 19:06:03 +01:00
gir489
de5ff92fa0
Fixed hooks::scripted_game_event using incorrect types and sizes. (#2844) 2024-03-19 10:33:50 +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
gir489
f4e0da5ff4
Added g_local_player pointer sanity checks. (#2792) 2024-03-01 17:48:20 +01:00
Andreas Maerten
183b0eee44
feat(renderer): added dynamic font loading based on lang requirements (#2738)
Related YimMenu/Translations#117
Closes #2723

Changes made:
 - Renderer class was changed to a static instance
 - Some throw code was removed because of change of instantiation of the renderer
 - Fonts are dynamically loaded based on the language requirements
 - renderer files have been moved to make the root directory less messy
 - Added a font mgr to improve the ease of adding more language support
2024-02-21 21:26:29 +01:00
Quentin
683d6bce07
proper fix for weapon info damage crash (#2740) 2024-02-21 07:48:42 +01:00
Quentin
9e6559b304
AMMO_BALL protection (#2733) 2024-02-20 20:27:34 +01:00
Quentin
3a8aed2d00
RECEIVED_CLONE_REMOVE player ped removal protection (#2732) 2024-02-20 20:26:12 +01:00
maybegreat48
240ca76e3b
Block traffic protection (#2688)
* fix: don't randomize components if we're cloning an existing ped
* feat(protections): add traffic manipulation protection
* fix(protections): add a mission check
2024-02-09 15:34:45 +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
4312d9d15c
Weapon events refactor. (#2622)
* Removed legacy REMOVE_ALL_WEAPONS_EVENT network event check.
Added GIVE_WEAPON_EVENT check to prevent people giving us weapons.
2023-12-21 16:17:45 +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
95b9724fff
Added more spam messages to the filter. (#2488)
* Added more spam messages to the filter.

* Removed duplicate remote control vehicle button from the player vehicle menu.

* Added heuristical spam detector.

* Fixed clock in spam logger.

* Added date output to the chat logger.

* Added a message to show the user when someone is spamming.
More static text translations.

* Removed redundant mobile global in scr_globals.hpp.

* Added a spam reason to the spam logger.

* Added team/all to the chat logger.
Added a logger call for the user's chats.
2023-12-07 20:04:00 +01:00
yubie
062c95b374
feat(anticheat): Anticheat bypass improvements (#2463)
- Add more metrics to bad_metrics set
- Add MM Filtering (This metric shouldnt be normally called anyway)
- Improve QD Hook to increase AC verifier delay when detected
- Removed gameskeleton hook in favor of patching ac at init
- Added tamperactions check to gameskeleton patcher
2023-11-30 10:47:39 +01:00
Andreas Maerten
0f775d438e
fix(Metrics): block MM metric (#2455) 2023-11-26 23:42:31 +01:00
Andreas Maerten
c01043cfb1
refactor(Metrics): filter out "bad" metrics and allow normal ones to be sent (#2453) 2023-11-26 21:59:01 +01:00
maybegreat48
5d538cf53c
Rewrite AC bypass (#2430)
* fix(anticheat): rewrite AC bypass again (the old one isn't detected but this is cleaner)
* fix(chat): some chat tweaks
* fix(anticheat): fix memory leak
* feat(lua): add is_player_friend
* fix(protections): fix possible false positives with the vehicle task mismatch protection
* feat(protections): add debug logs to trace false positive
* fix(spam): add some more stuff
2023-11-19 23:20:15 +01:00