Commit Graph

1266 Commits

Author SHA1 Message Date
Andreas Maerten
f13eab76a6
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
6f40a38045
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
f10c698396
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
5ffe6c7d3b
Xml vehicles (Menyoo) (#1594) 2023-07-07 11:11:54 +02:00
maybegreat48
c121e72eb6
Fix GTA data service (#1635)
* fix(gta_data): service now parses unloaded RPF files
2023-07-07 07:57:38 +02:00
Andreas Maerten
ac302d2bbb
fix(PlayerInfo): money overflow (#1631) 2023-07-06 21:58:46 +02:00
Andreas Maerten
bae5d3adfd
refactor(PlayerList): height calculation code +horizontal scroll fix (#1629)
Fixes #752
2023-07-06 20:35:42 +02:00
Andreas Maerten
c571f5a1e7
fix(CmdExecutor): Set sizing of input w/ frame padding (#1618) 2023-07-06 07:46:42 +02:00
Andreas Maerten
6dc7da4dbe
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
6ea93ee333
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
a0beeea767
Added Always Full Ammo. (#1616) 2023-07-05 23:29:07 +02:00
maybegreat48
cbc80e6caf
Mission fixes and modder detection improvements (#1598)
* feat(protections): improve protections
* fix: fix mission start
2023-07-05 09:30:06 +02:00
Quentin
167e1f8d54
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
89f57a9a4c
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
bc0f08ce1d
fix(Overlay): Added spacing for Enabled/Disabled text on overlay indicators (#1589) 2023-07-04 11:08:58 +02:00
Sixhei Tartari
9c445be4f4
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
6d6848c2fb
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
7c927e0cfb
feat(PlayerDB): Added search button (#1579) 2023-07-02 22:55:06 +02:00
Quentin
a4d623ca74
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
e4ac08496c
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
3bdd0796f4
Lua doc (#1552) 2023-07-02 00:59:02 +02:00
Andreas Maerten
f96356960a
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
36d1dbeb22
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
d1e839651b
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
57ac1a315c
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
a43d3d8824
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
e5a33e2b32
Custom location system (#1567) 2023-06-30 20:36:45 +02:00
DayibBaba
c35c7fdff9
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
f6969d88c5
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
d4bcd70629
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
c3121de8e7
lua: change the way native functions are binded (#1543) 2023-06-27 20:13:05 +02:00
DayibBaba
5fc6ef8fb5
General UI tweaks (#1538) 2023-06-27 14:05:44 +02:00
Quentin
f8f63a789a
fix(CanApply): issue with selecting the correct datanode (#1533) 2023-06-25 23:04:01 +02:00
DayibBaba
1e701326a2
Vehicle tabs UI tweak (#1521) 2023-06-25 10:38:53 +02:00
Andreas Maerten
305f6e7e8d
refactor: CanApply use structs instead of std::pair (#1523)
* refactor: CanApply use structs instead of std::pair
* feat(CanApply): format nodes
2023-06-24 23:57:34 +02:00
DayibBaba
7b552f71aa
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
717468087c
fix(pointer cache): cache version should be sensitive to field count (#1512) 2023-06-23 14:56:40 +02:00
tupoy-ya
1eae251012
feat(Outfit Editor): Add [+] & [-] buttons (#1441)
* And other general UI improvements
2023-06-23 10:44:06 +02:00
Andreas Maerten
8bc6648100
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
5e0efaaed5
Tunables service fix and theme changes (#1507) 2023-06-23 08:43:44 +02:00
T14D3
c577258c0d
feat(Aimbot): modified aimbot max distance (#1490) 2023-06-22 10:39:13 +02:00
DayibBaba
9936e81bf3
Player UI tweaks (#1489)
* Redesigned Player UI

* Formatting
2023-06-22 10:11:56 +02:00
DayibBaba
57b4b478fb
feat(ViewSession): UI tweaks (#1479) 2023-06-21 10:02:35 +02:00
DayibBaba
70c4b0c63b
Added nearby entity deletion (#1476) 2023-06-21 10:01:00 +02:00
DayibBaba
5d3620a67c
Added current coordinates in Teleport tab (#1474) 2023-06-21 10:00:38 +02:00
DayibBaba
174e1e5412
Basic hostile ped disarm (#1437) 2023-06-17 18:39:16 +02:00
DayibBaba
dca82a4060
fix: Made breakup conditional (being host) (#1436)
Closes #1448
2023-06-17 15:49:48 +02:00
Sainan
853061a7b7
Fix copy-paste error (#1446) 2023-06-17 15:17:46 +02:00
Sixhei Tartari
5848599c60
feat(Vehicle): Added keep engine running functionality (#1426) 2023-06-16 14:27:47 +02:00
Johann
2beb4d7f20
feat(session_browser): update max session limit (#1423) 2023-06-15 21:57:43 +02:00