Samurai's Scripts v1.8.4
Changelog
PR #100: refactor(Businesses): refactor CEO
- Move special cargo warehouses into a new Office class.
- Fix warehouse restock command.
- Add a Player Abilities option to the Self tab.
- Fix Key binds UI's fatal crash issue in YimLuaAPI.
- Disable ALT key in KeyManager.
- Make ground loading in
Self:Teleportoptional to prevent teleporting to building roofs instead of ground in some cases (will properly fix later). - Move
ImGuiChildFlagsto the ImGui extensions file. - Make
ImGui.BeginChildExmore readable and easier to reason about.
PR #101: feat(YHV1): Add heists script
Create YimHeistsV1 (idk if that name will be final) for quick prep skips and currently Cayo Perico setup.
- Add prep skips and teleports/waypoints for Cluckin Bell, KnoWay, Dr Dre, and Oscar Guzman
- Add Cayo Perico tab allowing for unlocking all options, setting primary/secondary targets, weapon loadout, hard mode
PR #102: refactor: several refactors
General
- Renamed the
Selfmodule toLocalPlayerto avoid confusion with Lua'sself(this) keyword. - Moved the
Teleportfunction fromLocalPlayertoPed. Invoking it is still the same, you just callLocalPlayer:Teleport(...).
YRV3
- Refactored Auto-Sell: YRV3 no longer sets any script globals or locals; each supported sale script takes care of itself.
- Added Import/Export tab to the CEO tab. Right now this only displays data and offers tips about profit strategy. Auto-Sell and Auto-Steal may be added in the feature (this is not a promise).
- Fixed auto-sell for biker businesses. This no longer "assumes" the number of deliveries and causes you to get paid a lot more than you should.
- Refactored UI:
- Each business now has its own UI file to avoid bloating the main file and make it easier for devs to extend it.
- Each file that uses
measureBulletWidthsnow caches the result.
Casino Pacino
- Casino Heist tab is now guarded behind Arcade ownership. The tab won't display heist options if the player doesn't own an Arcade.
- Improved UI and added teleport and waypoint buttons for the casino and the arcade.
Dev/Scripts
- Fix broken regex patterns in
globals_locals.lua - Fix
update_offsets.py
PR #103: fix(UI): fix missing require
PR #104: refactor(YHV1): GXT labels
Not tested in Legacy
YHV1:
- Refactor to utilize in-game GXT translations where available and set up for adding more heists
- Mirror CasinoPacino in checking for required property ownership for Cayo
YRV3:
- Fix Fill Supplies due to incorrect global on Enhanced
debug_ui:
- Minor ImGui errors
misc:
- Utilize cached data more
PR #105: fix(misc): miscellaneous fixes
- Fix Bunker auto-sell.
- Fix attempts to read property stats too early into session transitions.
- Extend YRV3's auto-fill delay setting to a maximum of 10 minutes.