779 Commits

Author SHA1 Message Date
gir489
495f7c0c27 Pull down changes from gtav-classes project. (#3300) 2024-07-04 20:34:49 +02:00
gir489
54286f3bb4 Fixed freemode::mobile local for 3258. (#3298)
* Fixed freemode::mobile local for 3258.

* Fixed carmod_shop locals.
2024-07-04 09:33:09 +02:00
maybegreat48
1c34e2a1b6 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
Quentin
143d869faa fix off by one error (#3296) 2024-07-02 10:16:06 +02:00
Tessio
76f3006ed4 Globals updated 1.69 (#3292) 2024-06-28 18:21:46 +02:00
Quentin
9a4cec07ca block_join_reasons cleanup (#3290) 2024-06-27 22:11:08 +02:00
maybegreat48
74ecf22ecf 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
kikkin_yo_azzez
6d29a81291 update outfit slot name global (#3280) 2024-06-24 20:36:11 +02:00
CringeArab
73ca5da694 Filters to the player database (#3268) 2024-06-24 20:27:16 +02:00
CringeArab
b02e428cf9 Filtering blocked modders in session browser (#3257) 2024-06-24 20:24:53 +02:00
kikkin_yo_azzez
1b25bdc866 add show_success lua binding (#3249) 2024-06-19 11:37:38 +02:00
sch-lda
1f32884af8 feat(ChatFilter): block chats from unknown users (#3250) 2024-06-14 11:21:45 +02:00
sch-lda
2dbb931dea fix(Chat Filter): also lowercase incoming text (#3225) 2024-06-05 15:51:35 +02:00
Ryan
6110db55fc Add new spam words (#3204) 2024-06-02 19:11:40 +02:00
CringeArab
f24c287e70 added block_join_reason (#3215) 2024-06-02 17:37:02 +02:00
kikkin_yo_azzez
0e7b5c1d37 Make Player Stats Retrievable Within Lua (#3199) 2024-06-01 12:57:21 +02:00
CringeArab
9baaf42b79 input for xml transport (#3207) 2024-05-31 23:55:44 +02:00
R.K
8f179007e1 Disable Vehicle Heading Updates When Vehicle Flying in First-Person Mode (#2991) 2024-05-30 22:07:41 +02:00
CringeArab
4246fc7a74 Chat spam to reaction (#3192) 2024-05-30 20:24:33 +02:00
CringeArab
974e9ad184 Block join reason to reaction (#3190) 2024-05-30 20:07:39 +02:00
maybegreat48
0e5c8f7cfb Break game and protections (#3203) 2024-05-30 19:45:43 +02:00
R.K
dcf50fffa8 P2905R2 Fix - Refactor rvalue arguments into lvalues for std::make_format_args (#3194)
Co-authored-by: xiaoxiao921 <837334+xiaoxiao921@users.noreply.github.com>
2024-05-29 19:50:59 +02:00
pierrelasse
84aae84b36 Fix GodMode not being displayed when Vehicle-GodMode (#3123)
Co-authored-by: R.K. <13259220+rkwapisz@users.noreply.github.com>
Co-authored-by: dynamoNg <139460769+lonelybud@users.noreply.github.com>
2024-05-28 00:10:17 +02:00
R.K
a3d8bf590d [Bug Fix]: Fixes for Never Wanted "Flickering" in Zancudo/Bolingbroke (#3152)
* replace REPORT_CRIME with SET_MAX_WANTED_LEVEL

---------

Co-authored-by: gir489 <100792176+gir489returns@users.noreply.github.com>
Co-authored-by: Arthur <redacted@gmail.com>
2024-05-27 23:57:19 +02:00
lonelybud
301c74ed3e move session lock logic to handle_join_request (#3136) 2024-05-24 23:20:04 +02:00
Ryan
ffbd55703d Remove Unknown Player OOM Kick False Positives (#3170) 2024-05-24 23:19:32 +02:00
maybegreat48
a6e7eb54b6 Session multiplexer and more (#3167) 2024-05-24 23:17:54 +02:00
Quentin
8ddba7de27 Revert "Direct implementation of fix vectors (#3147)" (#3179)
This reverts commit 84d76f203821338ceed9ba690509eac33508f99a.
2024-05-24 23:10:18 +02:00
maybegreat48
3efd9d7fd1 Harass players and spam killfeed (#3161) 2024-05-21 23:28:52 +02:00
gir489
14dd9e13a2 Refactored DISABLE_CONTROL_ACTION to use unordered_set. (#3157)
* Refactored DISABLE_CONTROL_ACTION to use unordered_set.

* Refactored SCALEFORM_MOVIE_METHOD_ADD_PARAM_INT hook to reuse the arg0 parameter if format_money was on, but the user had less than 1000 casino chips.
2024-05-19 20:43:20 +02:00
CringeArab
7b3920a3dd fix: Fake ban message (#3141) 2024-05-19 20:42:29 +02:00
Mr-X-GTA
ee92caa889 Protection improvements (#3146) 2024-05-19 20:26:44 +02:00
Bugisoft
84d76f2038 Direct implementation of fix vectors (#3147) 2024-05-19 16:17:31 +02:00
gir489
95b99c2a11 Added filtering system to prepare_metric_for_sending. (#3139) 2024-05-19 00:04:12 +02:00
R.K
e29928ef46 [Enhancement]: Stability Improvements to Black Hole Feature (#3132) 2024-05-16 18:47:25 +02:00
R.K
f28883a05f Small Refactor of Session Bad Sport Spoofing (#3134) 2024-05-16 09:51:04 +02:00
Ryan
d83cc4f0c6 Change MIPH with MPH (#3128) 2024-05-16 00:05:51 +02:00
gir489
610f7e62cb Added file-based log to debug.packet_logs. (#3127) 2024-05-15 19:54:34 +02:00
lonelybud
cc91ad4ea4 elegant crash complete protection (#3109) 2024-05-15 17:38:48 +02:00
maybegreat48
7195f5f069 Desync protection improvements (#3094) 2024-05-13 19:01:47 +02:00
maybegreat48
b626140916 Hide vehicle godmode (#3103) 2024-05-13 17:21:34 +02:00
Mr-X-GTA
db371a3911 fix(script_event_handler): fix crash (#3105) 2024-05-13 00:45:57 +02:00
R.K
cb78d9a868 [Enhancement]: Session Switcher Combo (#3100) 2024-05-13 00:45:30 +02:00
gir489
77393a5565 Remove redundant nullptr checks in player::get_ped(). (#3095)
* chore(Player): remove `this` keyword

Co-authored-by: Andreas Maerten <24669514+Yimura@users.noreply.github.com>
2024-05-11 23:23:26 +02:00
Mr-X-GTA
97bf6616ce fix: crash in transition (#3091) 2024-05-11 20:43:00 +02:00
HCR-750F
0fa7c580c1 feat: Chat translator (#2931) 2024-05-10 21:41:59 +02:00
Mr-X-GTA
9ad4885a8f Desync kick protection (#3086) 2024-05-10 21:09:10 +02:00
Muhammad007228
c77ffe1788 Less noticeable multi-kick => smart-kick (#3066) 2024-05-10 11:51:14 +02:00
R.K
ce310f34a8 IPL Fix & Formatting (#3082) 2024-05-10 11:42:21 +02:00
Ryan
f546286033 feat: Block Stand elegant crash (#3076) 2024-05-09 23:29:03 +02:00
Mr-X-GTA
b58d1d189d 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
R.K
cee89f5e8a Crash Fixes (?) (#3081) 2024-05-09 23:09:59 +02:00
Ryan
178cddabd5 Fix the Radio Sync Fix (#3060) 2024-05-09 15:10:56 +02:00
R.K
0b21bd8c6a Hotfix (#3072) 2024-05-09 11:06:25 +02:00
maybegreat48
efc172c9e2 Assorted fixes (#3073)
* feat: unstuck more when removing blackscreen
* fix: make kicks more versatile
2024-05-09 11:05:56 +02:00
gir489
ce62f3d04b Sanity checks for get_net_data. (#3068) 2024-05-08 10:33:21 +02:00
R.K
543c229be2 Refactor of Player Wanted Level (#3070) 2024-05-08 10:24:00 +02:00
R.K
5819f48f64 [Workaround]: Remove Start LS Customs Button from LS Customs Menu (#3065) 2024-05-06 22:19:38 +02:00
tiCkuhAr
861e53ec7a Remove useless kicks (#3061) 2024-05-06 22:11:35 +02:00
R.K
8f2422b923 Start Script Activity Session Check (#3045) 2024-05-06 22:00:32 +02:00
R.K
0a5a8c2ef7 PlayerDB Delete Untrusted Players (#3053) 2024-05-06 20:51:33 +02:00
R.K
7216f6cadb Allow Trusted Players & Friends to Request Control (#3047) 2024-05-06 20:15:53 +02:00
Andreas Maerten
1bf49fab3d fix(Views/Player): not closing when the selected player left (#3039) 2024-05-03 18:53:59 +02:00
HCR-750F
d59f8d85c1 Add more translation keys (#3024) 2024-05-03 17:29:24 +02:00
gir489
93c95c51c3 Fix multiple crashes. (#3035) 2024-05-03 17:28:21 +02:00
Ryan
03fb470983 Radio Sync Fix (#2973) 2024-05-02 17:42:37 +02:00
gir489
2c55564d1a Refactor format money to use manual methods of comma addition. (#3020) 2024-05-01 23:30:25 +02:00
Quentin
e97c057ae4 fix(vehicle): fix repair not working after going in water (#2996) 2024-05-01 23:25:30 +02:00
gir489
3b42b3aac1 Fixed vehicle extras to match the scripts (#3019) 2024-05-01 23:24:20 +02:00
gir489
eac117299b Updated the max characters from 64 characters to 41, which seems to be the maximum the Socialclub API actually saves and returns. (#3014) 2024-05-01 10:54:28 +02:00
gir489
53e6530d66 Add motorcycle club, too. (#3013)
* Refactor add_callback_for_labels to take an initializer_list.
2024-04-30 23:17:59 +02:00
gir489
ffcd789209 Increased the maximum length of CEO Name from 15 to 64 characters. (#3011)
* Added FMMC_KEY_TIP15 replacement of 15 to 64.
* Removed legacy multiplayer chat filter.
2024-04-30 22:59:52 +02:00
Arthur
260e53f82c Bypass Profanity Checks (#3010) 2024-04-30 20:53:29 +02:00
R.K
7408350af3 feat: Added Infinite Vehicle Ammo (#3003) 2024-04-30 20:52:49 +02:00
R.K
806e1b8fdf fix(VehicleController): Missing translations (#3004) 2024-04-30 18:13:25 +02:00
gir489
d20c136d34 Added "Enable MK1 and MK2 Weapons" feature. (#3000) 2024-04-30 18:11:43 +02:00
HCR-750F
acf16c71da refector: Chinese chat spam blacklist (#2994) 2024-04-30 17:55:17 +02:00
R.K
65cabdc11f fix: Prevent autokick of friends and trusted (#2989) 2024-04-28 22:44:20 +02:00
R.K
77137973b2 feat(Protections): added UI element to toggle give collectible (#2990)
* Adapted protection UI to better make use of the space
2024-04-28 21:54:18 +02:00
gir489
51cd6e37ff 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
7c8aa753ee Fixed format_money not working. (#2969) 2024-04-24 21:14:41 +02:00
gir489
33530855d1 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
fcdeeba7ed 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
e32fee1252 Added formatting to money on HUD. (#2957) 2024-04-22 18:29:42 +02:00
Vali
d8bc812907 Added crash objects to list (#2950)
* Fixed duplicate and added any possibly missing object
2024-04-20 00:14:34 +02:00
Quentin
065e5f2cd3 Fix for GTA Build 3179 (#2946)
* Removed old and unused security pointer/signature
* Updated GTAV-Classes
2024-04-17 15:05:09 +02:00
Quentin
a46d6d0fae fix(lua): fix pointer.allocate allocating the wrong number of bytes (#2941) 2024-04-13 17:41:04 +02:00
Quentin
6f8490f450 fix(lua): better error reporting when calling player commands (#2932) 2024-04-10 11:43:55 +02:00
gir489
c0214aeb85 Revert #2857 (#2921) 2024-04-06 23:49:55 +02:00
Andreas Maerten
56a94a96c7 fix(Onboarding): not showing up when cache needs to generate (#2916)
Fixes #2910
2024-04-05 14:16:58 +02:00
Andreas Maerten
a42286b543 feat(FontMgr): expand Turkish glyph range (#2915) 2024-04-04 20:34:43 +02:00
gir489
c06cbdf3bb Fixed vehicles in preview exploding. (#2908)
* Closes #2905

* Fixed set_mp_bitset being called from vehicle::spawned if the is_networked parameter was false.
2024-04-04 09:43:10 +02:00
gir489
65c2aa9b16 fix: Vehicle Preview same model hash different actual vehicle (#2904)
Closes #2903
2024-04-02 09:55:13 +02:00
gir489
d0292b59cb Refactor m_rockstar_id into its proper type of a 64-bit signed integer. (#2901) 2024-03-31 21:11:52 +02:00
lonelybud
fe04dfedf3 fix chat not seen by other players (#2900) 2024-03-31 19:34:41 +02:00
Quentin
6e0358737f fix nlohmann potential throw in ped outfit (#2894) 2024-03-30 18:42:04 +01:00
gir489
d63f712e5e Redesigned the preview system entirely. (#2888) 2024-03-30 18:41:12 +01:00
gir489
1276c51c06 Fixed gamer_handle_serialize/deserialize using the wrong sizes. (#2886) 2024-03-28 20:15:33 +01:00
gir489
cde9c23323 Unify rlGamerHandle code and fix chat inaccuracies. (#2883) 2024-03-27 21:43:31 +01:00
gir489
659cffa6f7 refactor: Model Preview use time delta instead of frame/tick rate (#2881)
Closes #2880
2024-03-27 14:10:14 +01:00
gir489
a9ccde5ac1 ACTUALLY fixes #2675 this time I swear. (#2879) 2024-03-27 11:33:33 +01:00
gir489
9b6712cc7d refactor: Bad design around the preview service (#2877)
Closes #2875
Closes #2675
Closes #2077
2024-03-26 23:37:50 +01:00
DayibBaba
f20ad20162 Fixed send chat logic (#2874)
Command reports will now only be sent to the command user
2024-03-26 17:28:08 +01:00
lonelybud
ccfa6759dd increase navigation_struct name size (#2869)
may fix #2852
2024-03-25 15:38:09 +01:00
maybegreat48
1e79a92657 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
99afa8dfbb 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
dd5da5efec Remove DROWN flag and replace it with WATER flag. (#2863) 2024-03-22 22:19:57 +01:00
gir489
2961abfa97 Fixed incorrect typing of crash_objects array to allow the compiler to determine which is best. (#2859) 2024-03-22 09:24:39 +01:00
xynny
a6ded86e3f Add more crash models to protection (#2857) 2024-03-21 23:04:40 +01:00
Andreas Maerten
e46bb8884b fix(Logger): not logging anymore after setup is done (#2858)
Regression introduced in #2492
Closes #2773
2024-03-21 22:22:33 +01:00
Alice
540ff21b05 add lua api: script.execute_as_script (#2824)
Co-authored-by: xiaoxiao921 <xiaoxiao921@hotmail.fr>
2024-03-21 11:20:22 +01:00
DayibBaba
f50d0f2c9d Fixed bounty button & added bounty to all (#2846)
* Added separate ID for Set button & Added bounty for all

* Reverted unrelated changes

CPlayerExtendedGameStateNode should be updated on classes repo though
2024-03-19 20:10:33 +01:00
gir489
caa813c4a8 Extra give control checks (#2847)
Closes #2841
Closes #2088
2024-03-19 19:06:03 +01:00
gir489
0bf069ad99 Fixed hooks::scripted_game_event using incorrect types and sizes. (#2844) 2024-03-19 10:33:50 +01:00
maybegreat48
1dc46b1fa9 Use the timestamp when validating cache version (#2834) 2024-03-18 14:33:09 +01:00
gir489
0f8cec4604 Replace offset.bin's header version variable with TimeDateStamp. (#2832)
* Replace offset.bin's header version variable with TimeDateStamp.

* Broke out Read Attribute Patch into two signatures.
2024-03-16 22:06:29 +01:00
Andreas Maerten
88036b91da 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
d75664ec3f Added Turkish font support. (#2817)
* Added Turkish font support.

* Fixed Turkish case not including Latin characters.
2024-03-11 22:39:25 +01:00
HCR-750F
de90e068b9 chore(Translation): Simplified zhcn Character List and Add new Traditional Chinese characters for https://github.com/YimMenu/Translations/pull/121 (#2807) 2024-03-11 15:27:45 +01:00
gir489
46d7d9f3ad Added g_local_player pointer sanity checks. (#2792) 2024-03-01 17:48:20 +01:00
Quentin
a29cca838c lua natives: try to handle Any* parameters properly (#2785) 2024-02-28 23:47:33 +01:00
HCR-750F
061484e828 Fix: display of the vehicle list for Traditional Chinese users (#2772) 2024-02-24 14:30:17 +01:00
Quentin
a548ecc074 lua io.exists (#2771) 2024-02-24 11:10:58 +01:00
Andreas Maerten
681d6590a8 feat: Add menu onboarding to YimMenu (#2492) 2024-02-23 22:54:25 +01:00
lonelybud
5b73acecc2 fix: ped body clean up logic (#2764) 2024-02-23 21:00:26 +01:00
gir489
b150009e28 Implemented GetGlyphRangesChineseSimplifiedOfficial (#2756) 2024-02-22 16:53:04 +01:00
Andreas Maerten
6149b8ec9b Many different fixes (#2749)
* fix(BytePatch): regression in world spawn bypass introduced in #2669
* fix(View/Network): session join options not updating after language change
* fix(RapidFire): prevent game from crashing by filling up the bullet pool
* refactor(Settings): don't save certain settings that users usually don't want to have enabled
* fix(CustomWeapons): render weapon names properly
* fix(reaction): names don't appear in chat
2024-02-21 23:34:11 +01:00
Andreas Maerten
1064077b9c 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
b1caff97fe lua: fix enabling/disabling (#2745) 2024-02-21 13:05:01 +01:00
Quentin
80f28134a5 lua: allow functions to be called without giving all of its args (#2744)
This makes usage of native functions that normally use pointer args easier to deal with.
2024-02-21 13:02:29 +01:00
Quentin
26686402c3 proper fix for weapon info damage crash (#2740) 2024-02-21 07:48:42 +01:00
Quentin
19204743f0 AMMO_BALL protection (#2733) 2024-02-20 20:27:34 +01:00
Quentin
3342d663f6 RECEIVED_CLONE_REMOVE player ped removal protection (#2732) 2024-02-20 20:26:12 +01:00
gir489
4f9997d9ed Fixed Social Club Presence Data. (#2729) 2024-02-20 18:29:02 +01:00
gir489
4baa00f494 Added Korean font support. (#2718) 2024-02-19 11:37:00 +01:00
Arthur
76dceac391 Remove Random Events and G's Cache (#2716) 2024-02-18 22:03:17 +01:00
Andreas Maerten
792d451a88 fix: issues with proton installations (#2711) 2024-02-13 00:16:10 +01:00
Alice
68dd925de1 fixed bool_masked (#2708) 2024-02-12 18:26:07 +01:00
Anvar
07b10d66f6 Potential fix for WMSB (#2707) 2024-02-12 15:08:38 +01:00
gir489
59441b822c Fixed memory leak caused by not releasing the memory from GetWindowsVersion. (#2699) 2024-02-10 21:34:30 +01:00
gir489
3845d765f1 Fixed Fonts. (#2698)
Added Windows Build Info to log.
2024-02-10 20:50:27 +01:00
maybegreat48
0f7e20743e Launcher script start fix (#2697) 2024-02-10 14:14:29 +01:00
Quentin
0f083113c9 feat(log): print if debug build (#2695) 2024-02-09 22:02:30 +01:00
maybegreat48
d030bcbf4e 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
70875b31ab refactor: move Request Model logic to helper function (#2669) 2024-01-31 10:47:03 +01:00
Tessio
97ae9d9be3 feat(enums) Added new license plates from 1.68 (#2665) 2024-01-28 19:00:16 +01:00
maybegreat48
2a24d9fcd7 fix: don't randomize components if we're cloning an existing ped (#2663) 2024-01-28 15:51:25 +01:00
Arthur
2e63940b77 feat(lua): expose the self class and add new menu events (#2656) 2024-01-28 15:18:44 +01:00
Anvar
49d31f8799 Graceful Landing (#2660) 2024-01-28 15:17:26 +01:00
Robert Motrogeanu
dfb3ecc9be refactor(Handling): switch from DragFloats to SliderFloats (#2662) 2024-01-28 13:19:58 +01:00