228 Commits

Author SHA1 Message Date
Muhammad007228
c77ffe1788 Less noticeable multi-kick => smart-kick (#3066) 2024-05-10 11:51:14 +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
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
R.K
543c229be2 Refactor of Player Wanted Level (#3070) 2024-05-08 10:24:00 +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
HCR-750F
d59f8d85c1 Add more translation keys (#3024) 2024-05-03 17:29:24 +02:00
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