Commit Graph

1264 Commits

Author SHA1 Message Date
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
Andreas Maerten
befaa567ff chore: remove cache step from CI/CD (#1425) 2023-06-15 21:39:26 +02:00