220 Commits

Author SHA1 Message Date
Quentin
e97c057ae4 fix(vehicle): fix repair not working after going in water (#2996) 2024-05-01 23:25:30 +02:00
R.K
7408350af3 feat: Added Infinite Vehicle Ammo (#3003) 2024-04-30 20:52:49 +02:00
gir489
d20c136d34 Added "Enable MK1 and MK2 Weapons" feature. (#3000) 2024-04-30 18:11:43 +02:00
R.K
65cabdc11f fix: Prevent autokick of friends and trusted (#2989) 2024-04-28 22:44:20 +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
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
Quentin
6f8490f450 fix(lua): better error reporting when calling player commands (#2932) 2024-04-10 11:43:55 +02:00
Quentin
6e0358737f fix nlohmann potential throw in ped outfit (#2894) 2024-03-30 18:42:04 +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
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
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
46d7d9f3ad Added g_local_player pointer sanity checks. (#2792) 2024-03-01 17:48:20 +01:00
Andreas Maerten
681d6590a8 feat: Add menu onboarding to YimMenu (#2492) 2024-02-23 22:54:25 +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
Anvar
70875b31ab refactor: move Request Model logic to helper function (#2669) 2024-01-31 10:47:03 +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
Anvar
49d31f8799 Graceful Landing (#2660) 2024-01-28 15:17:26 +01:00
gir489
f07a6e0506 Optimized Aimbot code. (#2653)
* Fixed hypot call not considering the Z coordinates.
Refactored class-based variables.
Fixed on_player/on_enemy/on_police/on_npc config variables not being persisted to disk.
2024-01-27 11:51:23 +01:00
navmodder
0220f727b6 Better Aimbot & Flying Axe (#2480)
* Better Aimbot

* Revert "Better Aimbot"

This reverts commit 176824ad20ca46a9ec5bda79eeb5784d8bd277d9.

* Better Aimbot

* Flying Axe

* Aimbot smoothing

* More fixes & improvements

* Little missing detail

* Fixed

* Improvements

-switch to using inline
-switched timer to steady_clock
-changed axe lerp to "Lagrange's Interpolation"
- i hope girl is satisfied XD

* PEMDAS

* Comment!
2024-01-21 15:32:01 +01:00
maybegreat48
22e15e95d6 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
8179dfe2e9 Added sanity checks to vehicle_allow_all_weapons() to prevent an EXCEPTION_ACCESS_VIOLATION on m_vehicle when first entering it. (#2612)
Made the weapons lists in Self->Weapons->Ammunation and Weapon Hotkey sorted by name instead of a completely random order.
2023-12-20 14:16:03 +01:00
gir489
5e58512a1e Refactored Allow All Vehicles (#2604)
* Refactored Allow All Vehicles to use the current seat the ped is in to fetch the animation info that the car is currently using.
* Update gtav-classes tag hash.
* Removed GROUP_SMG from the allow all weapons false scenario.
2023-12-19 17:15:52 +01:00
gir489
4e83f3f25f fix(SpeedoMeter): squished drawing on mobile phone (#2601) 2023-12-18 23:38:08 +01:00
gir489
0ea3b95c4b 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
bc0d67583f Update crossmap and natives.hpp to 3095. (#2565) 2023-12-15 16:01:57 +01:00
HCR-750F
b958981e02 fix(Globals): off radar and fast respawn globals (#2568) 2023-12-15 16:01:36 +01:00
gir489
fefaaeef3c Removed m_velocity from CVehicle. (#2563) 2023-12-15 11:10:30 +01:00
gir489
abec4cd631 Closes https://github.com/YimMenu/YimMenu/issues/2559 (#2561)
Closes https://github.com/YimMenu/YimMenu/issues/2560
Closes https://github.com/YimMenu/YimMenu/issues/2552
2023-12-15 00:35:00 +01:00
gir489
31a09cd4b3 Fixed incorrect pointer type for PBOOL on line 92. (#2545) 2023-12-14 19:55:41 +01:00
gir489
da498bebb2 Fixed LS Customs camera being stuck on certain vehicles. (#2539) 2023-12-14 10:58:24 +01:00
gir489
228ce6b25e 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
horizon
0eb7ab6c50 Added Oppressor Mk 1's gliding ability to vehicle abilities. (#2538) 2023-12-14 00:54:59 +01:00
gir489
e3c7235b5e Added the ability to use guns in airplanes with allow_all_weapons. (#2536) 2023-12-13 23:43:18 +01:00
gir489
5a9019fa62 Fixed TRIGGER_SCRIPT_EVENT for 3095. (#2527) 2023-12-13 19:32:26 +01:00
gir489
72dd86713b Made LS Customs accept any car. (#2524) 2023-12-13 18:25:39 +01:00
gir489
e5d2f4ed05 Fix script patch signature causing crash (yubie-re) (#2523)
Redesigned the script patcher to assign the signatures names, so if they fail, it will print out its name.
2023-12-12 23:37:31 +01:00
horizon
5ab7c997c1 Updated vehicle_abilities.cpp to work with latest GTAV-Classes PR (#2509) 2023-12-12 15:46:59 +01:00
Aure7138
4632d15c8a fix(player_command): memory leak (#2504) 2023-12-12 09:50:52 +01:00
gir489
e508a4c293 Fixed Jet Assisted Take Off not working on Bombushka if the player was using Instant Refill of boost. (#2511) 2023-12-12 09:50:07 +01:00
Aure7138
bbafe0f0d0 refactor(command): get_suggestions (#2507) 2023-12-12 09:18:41 +01:00
Aure7138
81fc5133bb fix(player_command): execution failure (#2503) 2023-12-11 08:42:13 +01:00
gir489
ce7ed82a94 feat: allow invalid outfits to be applied (#2501) 2023-12-10 12:52:42 +01:00
thehorizon84
2033288b11 feat: Unlock Interaction Menu, Weapon Explosion Radius Modifier & improve fast respawn(#2489) 2023-12-08 14:13:06 +01:00
gir489
ab970764fc 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
thehorizon84
a3be8d9c03 Vehicle Abilities (#2474)
Co-authored-by: Yimura <24669514+Yimura@users.noreply.github.com>
2023-12-05 11:35:05 +01:00
gir489
144d075051 Fixed player getting ejected from nightclub while holding weapon. (#2447)
* Fixed nightclub ejecting the player if they had weapons equipped with Allow Weapons in Interiors on.
* Fix jittering weapons in the freakshop.
* Added all carmod shop scripts to prevent jittering in interiors.
2023-11-24 21:34:33 +01:00
gir489
cac7a4aed5 Removed globalplayer_bd IsInvisible set call. (#2416) 2023-11-16 19:47:19 +01:00
thehorizon84
937e1b5a13 Player Database Enhancement (#2411)
Added 'Send Friend Request' through the player's rockstar ID.
2023-11-14 20:20:26 +01:00