350 Commits

Author SHA1 Message Date
Andreas Maerten
5162cf98c7 fix(mobile): PV summon timer (#1689)
* feat(script_local): allow for global single instance definition
2023-07-11 23:53:15 +02:00
Andreas Maerten
6ec061a106 chore: remove chat profanity bypass (#1688)
Closes #1682
2023-07-11 23:14:46 +02:00
gir489
d997cfd3f6 Weapon Hotkeys (#1685) 2023-07-11 23:14:35 +02:00
Quentin
21277e4039 Fix(lua / script manager): Potential fix for stack overflow when yielding from lua scripts. Fix io / os lua libs being accessible. (#1681)
* fix(script-mgr / lua): first kill all scripts, then unload lua modules: because the lua scripts depend on lua state (which is stored inside lua module instance), killing the lua module first would not allow proper cleaning because of the lua state getting destroyed while the lua script might still be running.

* fix(unloading): Why even reset the fiber pool here?

* fix(lua): don't allow for io / os lua lib to be accessed for security reasons.

* fix(lua): Potential fix for C stack overflow error by using lua coroutine yielding instead of calling fiber yield directly from lua functions.

* feat(unloading): allow to unload in the main title screen. Also revert 309c374602 due to fiber pool being potentially exhausted, we want commands to have their cleanup code ran in priority.
2023-07-11 09:24:44 +02:00
Andreas Maerten
4349f5c6e5 fix(session): hard lock when switching too early (#1678) 2023-07-10 23:06:08 +02:00
Quentin
ac6d86b149 fix(gui): dont draw two gui separators at the top for lua only tab. (#1677) 2023-07-10 20:37:28 +02:00
Quentin
17d647dfa5 Log GTA error message boxes and don't make them close the game. (#1671)
* refactor: move utf 16 to code page string conversion to its own util file

* feat(error-handling): log error message box generated from gta.
2023-07-10 19:01:34 +02:00
Quentin
b8a7c9be70 fix lua gui: imgui Separator between modules instead of same line which is non sense (#1672) 2023-07-10 19:01:01 +02:00
Andreas Maerten
c4111b4f2e feat(GTA Cache): removed unused old code (#1663) 2023-07-10 00:40:47 +02:00
DayibBaba
27e66b9394 Custom teleport sub tab (#1652) 2023-07-09 23:03:05 +02:00
gir489
3dd9be8a95 Persist Weapons (#1647) 2023-07-09 23:01:42 +02:00
Quentin
5607c58c7e fix(cache): ignore modded rpfs. (#1651) 2023-07-09 16:05:41 +02:00
Quentin
38bbab4893 fix(cache): change how the game folder is retrieved, use GetModuleFileNameW instead of std::filesystem::path (#1645) 2023-07-08 18:13:19 +02:00
Andreas Maerten
5c6fb1064b refactor!: File Manager (#1633)
* feat(vscode): added launch.json to dbg
* feat(file_manager): Make use of a global instance
* feat(file_manager): Allow for file and folder instances to be empty
* refactor(GlobalsService): Update code of global service (untested)
2023-07-08 17:54:59 +02:00
gir489
b8922a9dba Refactored weapons.bin into weapons.json for extensibility and readability. (#1632)
* Refactored weapons.bin into weapons.json for extensibility and human readability.
Added weapon attachments scraping from the meta files (currently is missing a lot of attachments, more than half, requires RPF reading refactoring to fix.)
Added Ammunation to Self -> Weapons, because it's vital you protect yourself, the patriotic way.

* Fixed weapons.xml not properly populating all the components.
Refactored buttons to use components::button.

* Refactored the Attachments code to implicitly trust that the attachments will be there now.
Added proper versioning to the weapons.json file.
Removed debug logging from gta_data_service.cpp.

* Fixed Ammunation buttons.
Added loading message for the new weapons.json system.
Fixed a bug where two components shared the same name, the user could not select the 2nd component.
Fixed Attachments displaying an attachment from a previous weapon if the user changed weapons.

* Fixed Tint Apply button not using the components::button template.
2023-07-08 00:52:52 +02:00
Quentin
b6fae097aa fix(cache): fs::path.string() can throw when it try to convert windows utf16 wstring to multi byte std::string when user code page isnt utf8 (#1641) 2023-07-08 00:16:29 +02:00
DayibBaba
f71f899e6b Xml vehicles (Menyoo) (#1594) 2023-07-07 11:11:54 +02:00
maybegreat48
90ff1ece84 Fix GTA data service (#1635)
* fix(gta_data): service now parses unloaded RPF files
2023-07-07 07:57:38 +02:00
Andreas Maerten
172de938cc fix(PlayerInfo): money overflow (#1631) 2023-07-06 21:58:46 +02:00
Andreas Maerten
468c70f635 refactor(PlayerList): height calculation code +horizontal scroll fix (#1629)
Fixes #752
2023-07-06 20:35:42 +02:00
Andreas Maerten
e0dd2aa8e3 fix(CmdExecutor): Set sizing of input w/ frame padding (#1618) 2023-07-06 07:46:42 +02:00
Andreas Maerten
a7bcaae371 Fix windows that shouldn't move (#1617)
* fix(overlay): don't move while menu closed
* fix(CmdExecutor): don't move by user input
2023-07-05 23:54:06 +02:00
Sixhei Tartari
13d5d81cea feat(Vehicle Controller): Added vehicle window controls (#1607)
* feat(Overlay): Added Invisibility indicator and its able to save on unload
* feat(Vehicle Controller): Added vehicle window controls
2023-07-05 23:51:19 +02:00
gir489
feeaa2ddbd Added Always Full Ammo. (#1616) 2023-07-05 23:29:07 +02:00
maybegreat48
11cd9ab004 Mission fixes and modder detection improvements (#1598)
* feat(protections): improve protections
* fix: fix mission start
2023-07-05 09:30:06 +02:00
Quentin
abb7e17d83 Lua documentation: commands (#1595)
* lua api: fix command call null context

* lua doc: generate commands doc
2023-07-05 00:31:06 +02:00
Quentin
76afd97185 Lua: can make new tabs from lua scripts, doc generation for available tabs to use (#1593)
* lua api: add globals.get_uint and globals.set_uint

* lua doc: remove duplicate function check as we can overload so it doesn't make sense

* lua doc gen: add support for parsing the tabs enum

* gui: custom lua tabs don't have a `func` rendering function but can still have elements to draw

* lua doc: update generated doc

* chore: code style

* chore: minor spelling mistake

* chore: code style

* gui_service: add runtime removal of tabs

* refactor: make it so that it's less likely defining tabs and their translation key in a wrong way.

* lua api: ability to add custom tabs to the gui from lua
2023-07-05 00:30:57 +02:00
Sixhei Tartari
19f6487171 fix(Overlay): Added spacing for Enabled/Disabled text on overlay indicators (#1589) 2023-07-04 11:08:58 +02:00
Sixhei Tartari
a1e00b6d59 feat(Overlay): Added indicators for options like player & vehicle god mode, infinite ammo etc. & fixed Bull Shark Testosterone Request (#1580)
* fix(CEO Abilities): Fixed request bullshark testosterone script
* feat(Overlay): Added indicators for options like player & vehicle godmode etc.
2023-07-03 14:20:27 +02:00
Quentin
ed18f7e70d Lua: refactor script api, more doc, add button for Open Lua Scripts Folder (#1588)
* lua manager: pass down the scripts folder to the instance instead of hard coding calls to the file manager everywhere
* lua: add open lua scripts folder button
* lua api: change script binding so that user cannot by mistake try to sleep or yield in a non script context
2023-07-03 13:01:12 +02:00
Andreas Maerten
71960eddbb feat(PlayerDB): Added search button (#1579) 2023-07-02 22:55:06 +02:00
Quentin
b44b2f04e6 Feat lua file watch (#1584)
* feat lua: file watcher for lua script file: reload scripts if they got changed since they were initially loaded
* feat lua auto reload: enable / disable the feature through the ui and settings
2023-07-02 22:32:46 +02:00
tupoy-ya
e9ae5d5491 chore(natives.hpp)!: Updated natives to latest. (#1583)
fix(natives_gen.py): Don't save `DRAW_TEXTURED_POLY_WITH_THREE_COLOURS`.
refactor(natives_gen.py)!: Changed `NATIVE_DECL`to `static`.
2023-07-02 22:31:15 +02:00
Quentin
4c71be4142 Lua doc (#1552) 2023-07-02 00:59:02 +02:00
Andreas Maerten
346960b012 refactor!: General changes (#1578)
- Removed try catch from main.cpp for better error logging
- Added migration code to the YimMenu folder
- Renamed globals to settings
- refactor!: changed symlink
2023-07-02 00:52:36 +02:00
maybegreat48
f1f5d4f6c0 Set menu language to game language on first run (#1577)
* feat(translations): set menu language to game language on first run
* fix(translations): add exception handlers
* fix: more exception handlers
2023-07-02 00:25:40 +02:00
Quentin
2e70faa4ad Fix lua native bindings and lua script reload (#1575)
* fix: script manager and lua scripts: change the api so that the m_scripts array is only modified in a specific safe location: before it gets ticked.
* fix script manager: don't expose the script vector directly, for multithreading safety
* fix lua manager usage: don't iterate the module array without locking, nor un/load module from a script thread
* lua script: only do actual loading of lua modules in script mgr
* lua native bindin: fix pointer parameters, out C style parameters are returned as multiple return values lua-style
2023-07-01 22:40:17 +02:00
maybegreat48
6ae19c062e Chat delay fix and improved crash protections (#1572)
* feat(protections): filter invalid sector position from the player game state data node
* feat(chat): bypass chat delay
* fix(world): fix auto disarm
* fix(chat): true instant messaging
2023-07-01 00:03:17 +02:00
Andreas Maerten
64afb5b0cb fix: Context Menu crash & Vehicle God mode (#1571)
* fix(ContextMenu): nullptr dereference while drawing box
* fix(ESP): Vehicle God mode check if ped is actually driving
2023-06-30 20:38:30 +02:00
DayibBaba
1ab51f1e98 Custom location system (#1567) 2023-06-30 20:36:45 +02:00
DayibBaba
861ebdb2ae More bug fixes (#1557)
Fixed nearby features affecting players and local ped.
Removed faulty vehicle kick protection from can_apply

Fixes #1540
2023-06-30 13:38:44 +02:00
Andreas Maerten
464f2f90dc Bug fix time (#1549)
* fix(PlayerTP): Get Current only works once
* chore(README): removed features from TOC
* fix(ViewNetwork): SCTV join translation
* refactor: Use tunable service for no idle kick
* fix(Spoofing): check for valid model before spoofing
* feat(Spectate): Remove freeze and hide player blip
* fix(Spectate): case of chat not being visible as spectator.
* feat(Matchmaking): safer max search limit for match searching
* fix(Player/Toxic): Wanted Level small text translation
2023-06-28 11:20:48 +02:00
Andreas Maerten
618b50bd4c Fix settings::write_default_config & added reset all settings button (#1547)
* fix(settings): correctly write default settings
* feat(Settings): Added button to reset all settings
* fix(Settings): Use SeparatorText for subtitle
2023-06-27 20:24:08 +02:00
Quentin
dc18216263 lua: change the way native functions are binded (#1543) 2023-06-27 20:13:05 +02:00
DayibBaba
78986f7c02 General UI tweaks (#1538) 2023-06-27 14:05:44 +02:00
Quentin
a5b2c28c3b fix(CanApply): issue with selecting the correct datanode (#1533) 2023-06-25 23:04:01 +02:00
DayibBaba
c258ee2022 Vehicle tabs UI tweak (#1521) 2023-06-25 10:38:53 +02:00
DayibBaba
630159f65d Some fixes and requests (#1516)
* Removed Delete button and nearby.cpp

* Added player check for kill button

* Added delete vehicle button

* Fixed give armor & added vehicle god esp
2023-06-24 23:12:20 +02:00
Quentin
56e21320e1 fix(pointer cache): cache version should be sensitive to field count (#1512) 2023-06-23 14:56:40 +02:00
tupoy-ya
e0bd043588 feat(Outfit Editor): Add [+] & [-] buttons (#1441)
* And other general UI improvements
2023-06-23 10:44:06 +02:00
Andreas Maerten
ef86872235 fix: Bool CMD hotkey toggle message showing translation key (#1510)
* feat(TranslationService): introduced fallback key to joaat version of get_translation
2023-06-23 09:55:26 +02:00
maybegreat48
1d75981731 Tunables service fix and theme changes (#1507) 2023-06-23 08:43:44 +02:00
T14D3
74d3e2ac57 feat(Aimbot): modified aimbot max distance (#1490) 2023-06-22 10:39:13 +02:00
DayibBaba
b96fddd8d0 Player UI tweaks (#1489)
* Redesigned Player UI

* Formatting
2023-06-22 10:11:56 +02:00
DayibBaba
9201cc363b feat(ViewSession): UI tweaks (#1479) 2023-06-21 10:02:35 +02:00
DayibBaba
906e1d083a Added nearby entity deletion (#1476) 2023-06-21 10:01:00 +02:00
DayibBaba
1b745a25b6 Added current coordinates in Teleport tab (#1474) 2023-06-21 10:00:38 +02:00
DayibBaba
4b74f411a2 Basic hostile ped disarm (#1437) 2023-06-17 18:39:16 +02:00
DayibBaba
e5581a6f03 fix: Made breakup conditional (being host) (#1436)
Closes #1448
2023-06-17 15:49:48 +02:00
Sainan
4b73b46053 Fix copy-paste error (#1446) 2023-06-17 15:17:46 +02:00
Sixhei Tartari
e8c8a5755b feat(Vehicle): Added keep engine running functionality (#1426) 2023-06-16 14:27:47 +02:00
Johann
3fbcaeb2f9 feat(session_browser): update max session limit (#1423) 2023-06-15 21:57:43 +02:00
Johann
c1d7e39186 fix: update more globals to 1.67 (#1415) 2023-06-15 13:20:08 +02:00
Takoyaki White
df9347552e Fix personal vehicle (#1410) 2023-06-15 12:22:41 +02:00
maybegreat48
0af712537f Update to 1.67 (#1407) 2023-06-14 23:29:25 +02:00
Forever Gone
f1895be28a Added atRTTI to CEventNetwork (#1399) 2023-06-12 16:32:03 +02:00
Rxann
b388d46623 chore(debug misc translations) (#1331) 2023-06-10 15:21:57 +02:00
DayibBaba
a19b4d572e feat: TP on top error fix & Manual Teleport & Infractions in player list & Max Performance (#1394) 2023-06-10 14:47:19 +02:00
DayibBaba
9b5bd2ee4d fix(ContextMenu): entity detection (#1392) 2023-06-07 23:56:43 +02:00
Andreas Maerten
34481918d1 feat(PlayerDB): notify when player is online (#1386) 2023-06-06 13:37:45 +02:00
maybegreat48
03c1a96b67 Lua Scripting (#1334)
Closes #83
Fixes #1309
Fixes #1287
Fixes #1129 (actually fixed now)
2023-06-06 09:40:40 +02:00
Rxann
18da367781 feat(Session): Lock Lobby (#1342) 2023-06-05 21:59:56 +02:00
Rxann
b8e8bccd1c feat(Notifications): Added push_success function (#1340) 2023-06-05 21:46:20 +02:00
DayibBaba
35b276e3f4 chore: Rework mission viewer and added Hunt the beast event support (#1354) 2023-06-05 21:34:06 +02:00
FireFox101889
4203fa3e7e fix(gui): Use correct imgui style for hotkey background (#1371) 2023-06-05 21:33:04 +02:00
I am Cypher
7c59e7a98d feat: Add Disable siren (#1383) 2023-06-05 21:32:49 +02:00
oPiloto
f65d384030 fix(TrollPlayer): fixed flip_180 and downgrade_vehicle (#1385) 2023-06-05 21:32:31 +02:00
Andreas Maerten
c7635a5396 fix(Debug/Threads): can't switch to later tabs (#1378) 2023-05-28 17:36:15 +01:00
DayibBaba
c1fc45ea64 Added options_modal component & showcase with Orbital drone feature (#1353) 2023-05-19 10:30:25 +02:00
tyackman
4147bc583a fix(Log): Chat/Spam logs using the old IP address (#1363)
IP addresses are not being logged properly via the chat/spam logger.
2023-05-19 10:29:10 +02:00
Takoyaki White
750dea6afc fix(pointers): update Presence Data sig (#1358) 2023-05-16 22:21:58 +01:00
DayibBaba
2148cd1161 Context menu: Fixed irregular distribution of operations and added some more (#1335)
* Fixed irregular distribution of operations and added some more
* Changed explosion type of Enflame
2023-05-10 22:37:47 +01:00
DayibBaba
5c67e24382 Added dev tool for animations (#1332) 2023-05-10 22:29:40 +01:00
DayibBaba
fc30225bc4 Squad spawner improvements (#1329)
* New Fun UI for self with Super hero fly & bulletshield
* Added missing hotkey global
* New debug window for animations
* Some more context menu additions
* Changed private variable to public for Orbital drone
* Added max vehicle & favour roads & spawn ahead & orbital drone coords on custom spawn mode & persisten vehicle integration
* Removed Log entry
* Removed some more log entries
* Some small tweaks
* Added persistent vehicle to the logic
2023-05-10 22:29:16 +01:00
FireFox101889
b9efa3fac7 feat: Keep model dimension in mind when determining spawn location (#1316) 2023-05-10 22:11:59 +01:00
Andreas Maerten
61cd1c2a85 feat(ExceptionHandler): Force logs syncronously (#1317)
Closes #1303
2023-05-01 23:07:36 +01:00
Andreas Maerten
c9fc44e06b refactor(PlayerDB): Improve code (#1313)
This PR includes some improvements to the player DB service:
 - Added `Get Gamer Online State` function pointer
 - Added sorting of players alphabetically and grouping of players by their online state
 - The player DB service will now update 32 players at a time for their online state
 - Player entries will automatically save when changing any data from them
 - Update the player online states every 5min
2023-05-01 22:23:07 +01:00
Rxann
0440c35a3e fix(BlockJoin): Grab block reason correctly from DB (#1306) 2023-04-30 15:03:37 +01:00
Rxann
b3382b8dd3 feat(Block Join): fallback on breakup kick if block join fails (#1279) 2023-04-29 12:45:15 +01:00
Johann
fcd495082c feat(world): load ipl's (#1283) 2023-04-29 12:29:28 +01:00
Rxann
c1da23fb05 chore: change C-style casts to dynamic_cast (#1299) 2023-04-27 10:11:05 +02:00
Andreas Maerten
d56af95cbf fix(OrbitalDrone): crash when selecting a player ped (#1295) 2023-04-26 19:17:03 +01:00
Takoyaki White
fc5825643c Fix DEBUG_REMOVE_FROM_BAD_SPORT (#1296) 2023-04-26 19:16:41 +01:00
Andreas Maerten
58e5714011 fix(OrbitalDrone): broken tooltip text (#1294) 2023-04-25 22:59:51 +01:00
tupoy-ya
d8a2eae6d8 fix(Crash): Fixed crashes in SP Missions. (#1285)
chore(hooking.hpp): Removed useless declarations.
2023-04-23 23:06:20 +01:00
Andreas Maerten
86f93ffce6 chore: disabled blame explosion infraction (#1282) 2023-04-23 21:39:16 +01:00
Andreas Maerten
96174c7ab2 fix(exception_handler): crash on unload (#1280)
Restore the value the ErrorMode and the UnhandledExceptionFilter values.
2023-04-23 21:00:37 +01:00
DayibBaba
5299fe52ef Squad Spawner (#1250) 2023-04-23 16:23:00 +01:00
DayibBaba
de251b2e57 Improved does_script_exist() and local editor (#1265) 2023-04-20 20:07:16 +01:00
Aure7138
10d0563c4a fix(cache): less peds on init (#1268) 2023-04-19 10:57:49 +02:00