Commit Graph

51 Commits

Author SHA1 Message Date
db5e47d2ce Xml Map Loader (Menyoo) (#2233)
Co-authored-by: Yimura <24669514+Yimura@users.noreply.github.com>
2023-11-04 00:23:37 +01:00
37468ca7b0 Converted all static strings to translation keys. (#2284) 2023-10-20 18:24:44 +02:00
afd3a5e943 Add Garage drop-down to Spawn PV menu (#2171)
* Fixed edge case where a garage that contained only banned vehicles would show if the user was using Spawn Clone.
Refactored a large portion of the garage code to be production ready.
Formatting changes.

* Added singular garage items to the m_garage setter like the Terrorbyte.

* Fixed is_blacklisted_vehicle returning an inverted condition.
Fixed Garage drop-down not updating properly.

* Separated out m_garage's setter into a ctor function.
Replaced the 4 singular garages that use an overloaded index with a define to be able to shift them easier when new properties are added.

* Removed obsolete and incorrect player.character_slot config entry.
Removed deprecated local_player.hpp.
Added self::char_slot that is guaranteed to be correct.

* Removed extraneous semi-colon.

* Added more stuff to fillsnacks.
Removed more extraneous usages of MPPLY_LAST_MP_CHAR.

* Added the vehicle's name to player info.

* Fixed get_property_garage_size returning the incorrect size for the facility.
Fixed get_static_property_name returning the Nightclub's name instead of Nightclub Service Entrance to maintain consistency with the Mechanic.
Fixed garage_slot_iterator not starting and ending at the correct indexes.

* Shifted the singular properties down one to compensate for the new math.

* Fixed backwards math on Terrorbyte and Nightclub B1.

* Fixed garage not being updated when the player moved the vehicle.

* Fixed backwards comments.
2023-09-22 23:16:33 +02:00
347f33fb2d Disable input when typing into a text field. (#2140)
Closes #2139
2023-09-17 22:23:26 +02:00
cf07cfec04 Redesigned Vehicle Spawn menus to have consistent features. (#2063)
Closes #2053
2023-08-31 15:43:55 +02:00
5eead0436f Huge protection improvements and other stuff (#1963)
* feat(protections): add a fuzzer
* feat(protections): improve protections
* feat(spoofing): add warning
* feat(world): force object cleanup
* fix(weapons): fix custom weapon code
* fix(weapons): fix for #1983
2023-08-19 13:01:08 +02:00
96493b5a22 refactor!: Modify command argument handling and move on_ method to bool_command (#1826) 2023-07-26 22:22:40 +02:00
ae486ca129 Rework rgb for fun vehicle and paintgun (#1783)
Closes #1819
2023-07-23 18:51:57 +02:00
74ba7b6860 Custom Sky Color and unify some stuff (#1779) 2023-07-20 22:46:32 +02:00
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
cbc80e6caf Mission fixes and modder detection improvements (#1598)
* feat(protections): improve protections
* fix: fix mission start
2023-07-05 09:30:06 +02:00
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
e5a33e2b32 Custom location system (#1567) 2023-06-30 20:36:45 +02:00
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
5fc6ef8fb5 General UI tweaks (#1538) 2023-06-27 14:05:44 +02:00
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
1eae251012 feat(Outfit Editor): Add [+] & [-] buttons (#1441)
* And other general UI improvements
2023-06-23 10:44:06 +02:00
5e0efaaed5 Tunables service fix and theme changes (#1507) 2023-06-23 08:43:44 +02:00
70c4b0c63b Added nearby entity deletion (#1476) 2023-06-21 10:01:00 +02:00
174e1e5412 Basic hostile ped disarm (#1437) 2023-06-17 18:39:16 +02:00
70efa40afe Lua Scripting (#1334)
Closes #83
Fixes #1309
Fixes #1287
Fixes #1129 (actually fixed now)
2023-06-06 09:40:40 +02:00
56d9d39b71 feat(Notifications): Added push_success function (#1340) 2023-06-05 21:46:20 +02:00
bfb63616cf Added options_modal component & showcase with Orbital drone feature (#1353) 2023-05-19 10:30:25 +02:00
34c37b2042 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
670325d36f fix(OrbitalDrone): broken tooltip text (#1294) 2023-04-25 22:59:51 +01:00
a908b3fbc8 Squad Spawner (#1250) 2023-04-23 16:23:00 +01:00
74c3931209 Feat ptr cache continued (#1227) 2023-04-14 17:54:07 +01:00
6df7be6f06 General code and GUI cleanup (#1200)
* feat(native_hooks): removed useless bail kick hook
* feat(Translations): add button to force update languages
* refactor: reorganize GUI for world
* refactor: improve exception handler
Modified the exception handler to not catch C++ try/catch blocks before those could gracefully catch the error.

* chore: debug removed crash test button
* chore: removed script exception handler
* feat(OrbitalDrone): add translations
* feat(VehicleController): add translation keys
* feat: added player admin detected translation keys
* feat(Views): add cache sub menu
2023-04-07 23:08:34 +02:00
92400a956a Orbital Drone Feature (#1148)
* Orbital Drone Feature

* Fixed PR review comments

* chore: cleanup code

* UI & globals saving

* Fixed typo

* Fixed noclip conflict & Applied review suggestions & Added another changeable variable

---------

Co-authored-by: Yimura <24669514+Yimura@users.noreply.github.com>
2023-03-30 00:37:10 +02:00
0a9891e69d refactor: SET_PED_RANDOM_COMPONENT_VARIATION (#1125) 2023-03-21 08:22:08 +00:00
ef82f65cc3 feat: outfit editor (#1089) 2023-03-17 22:35:04 +01:00
11c0c2ab2f fix(Nearby): crash on rendering (#1079)
Fixes #1078
2023-03-12 21:58:02 +01:00
43fcc4cf6e feat(nearby): add riot mode (#1043) 2023-03-12 18:38:27 +01:00
9ccb77e8eb Add more spoofing options and added clang-format (#1020)
* feat(Spoofing): add spoofing
* feat(Spoofing): prepare code for player attach
* remove(PlayerAttach): isn't going to work due to netsync architecture
* fix(GUI): fix scaling
* feat(Project): add clang-format file
* feat(Classes): update classes
* fix(BlackHole): remove unnecessary cleanup
* fix(Formatting): fix formatting for initializer lists
* feat(clang-format): Set tab width and 1 space before comment

Co-authored-by: Yimura <24669514+Yimura@users.noreply.github.com>
2023-03-01 21:27:15 +00:00
7084ce510b Feature Additions, GUI Tweaks, Fixes (#975)
* Added view nearby to view header, moved get_entities function to entities and refactored some code. Also implemented a sphere scale to the blackhole as it can get big
* added delete and kill nearby peds and updated ped header
* added some nearby ped looped commands, and some changes to extend the buttons
* add vehicle options to nearby
* add most ciritcal feature kill enemies
* changes to ignore peds based off of some of maybegreat's suggestions, same with ped_rain, removed loose comment. Updated vehicle.hpp, changed size of vehicle buttons and inlined kill enemies
* fixed a problem where the vehicle options crashed + added color
* updated colors and added on disable for ped_rush
* finished and added vehicle rain feature
* added aimbot and triggerbot, added templating to buttons
* update vehicle rain desc
* added vdistance check, player check, police check, enemy check. Added even more commenting... sue me. 3 toggles added for the checks and slider for dist. Will tweak more later
* switched to goto statements instead of continue, should be done now
* removed delete nearby vehicles
* there was no check in get_entities for our local vehicle
2023-02-25 21:33:16 +01:00
c798bbe7c9 feat(world): model swapper (#1003) 2023-02-20 22:20:40 +00:00
bf8a98932c feat(world): blackhole (#951) 2023-02-08 21:50:26 +00:00
d4f2960c77 feat: Translation Service (#844)
Co-authored-by: mrwoowoo <github@hiqaq.com>
Co-authored-by: LiamD-Flop <40887493+LiamD-Flop@users.noreply.github.com>
2023-02-01 18:46:33 +00:00
d45d0c1ffc Toxic features and improve protections (#897) 2023-01-22 21:57:32 +00:00
61f125901e chore: Replace ImGui::InputText with components::input_text (#869)
Fixes #862
2023-01-16 20:58:57 +00:00
f6a6682c86 feat(Self): Part Water (Moses Mode) (#838)
Co-authored-by: TheGreenBandit <106003542+TheGreenBandit@users.noreply.github.com>
2023-01-15 21:39:57 +00:00
5260b27899 Editor+ (#745)
* feat(Toxic): add send to island
* feat(mobile): add helicopter backup
* refractor(mobile): update seperator
* feat(Troll): add set bounty

* tps
tp all to island
tp all to eclipse
tp to eclipse

* working hijack &, delete. + placeholders
* speed, derail
* drive train, working derail
* improved drive train
* exit train, rework delete
* using CReplayInterface
2023-01-06 23:25:16 +00:00
13ff1be75a Reactions, remote kick and better protections (#807)
* feat(Scripts): Complete GlobalPlayerBD
* feat(Scripts): add GPBD_Kicking
* feat(Scripts): start work on GPBD_FM_3
* feat(Scripts): add more to GPBD_FM_3
* feat(Scripts): complete GPBD_FM_3
* feat(Scripts): start work on GPBD_FM
* feat(Scripts): improve GPBD_FM
* feat(Scripts): complete GPBD_FM
* feat(Reactions): Add reactions
* feat(Protections): Improve protections
* feat(RemoteKick): Add remote kick
* feat(Stats): add KillsOnPlayers and DeathsByPlayers
* fix(Classes): Fix compiler warnings
2023-01-03 16:48:32 +00:00
b77e09065c feat(UGC): Simplify Job Import (#805) 2023-01-03 10:35:11 +00:00
2b1aee98de feat: Some small additions (#755) 2022-12-30 01:09:33 +00:00
f44859a973 feat(Api): Add more api endpoints to the scui api (#714)
* feat(Api): Add send message to player database
* feat(cpr): Disabling test build
* feat(Api): Fix max message length
* feat(Api): Download job for creator menu
2022-12-22 10:49:34 +00:00
f6c00f113d refactor!: globals (#717)
* refactor(globals): use macro's for to_json/from_json
* refactor(globals): switch from global pointer to global instance
2022-12-18 22:15:52 +00:00
792d765ffa Save creator jobs and bug fixes (#713)
* feat(Session): Session info serialization
* feat(Creator): Save and load jobs to file
* fix(Creator): Actually load the job
* fix(Creator): Try to fix loading
* fix(ScriptFunction): Fix memory corruption due to low stack size
* fix(Creator): Fix "No translation."
* fix(NativeHooks): Fix softlock when loading Cayo Perico
* chore(Toxic): Remove net time test for now
2022-12-17 14:47:01 +00:00
8c3953ab20 Toxic update (#641) 2022-12-06 16:12:02 +00:00
5f70975ffe feat(vendor): updated GTAV-Classes (#560) 2022-11-08 22:44:52 +00:00