refactor: several refactors by xesdoog · Pull Request #102 · YimMenu-Lua/Samurais-Scripts

@xesdoog

#### General

- Renamed the `Self` module to `LocalPlayer` to avoid confusion with Lua's `self` *(this)* keyword.
- Moved the `Teleport` function from `LocalPlayer` to `Ped`. Invoking it is still the same, you just call `LocalPlayer: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 offsers 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 eventually 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 `measureBulletWidths` now 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`