This README provides documentation for the Lemon_UI_Car_Spawner_Example
script, a basic example of using LemonUI to create an in-game menu in GTA V. The script allows spawning a Dubsta vehicle at the player's location.
Before using the script, ensure you have the following installed:
- GTA V
- ScriptHookV
- ScriptHookVDotNet
- LemonUI
Once built and installed, use the following key to interact with the script:
- Press
J
to open the in-game menu. From there, you can select the "Spawn Dubsta" option.
Lemon_UI_Car_Spawner_Example
extends theScript
class, managing game interactions through events.ObjectPool pool
: Manages the menu and item lifecycle.NativeMenu menu
: The main in-game menu interface.NativeItem spawnDubsta
: The menu item to spawn the vehicle.
OnTick
: Processes menu interactions.OnAbort
: Handles script cleanup.OnKeyDown
andOnKeyUp
: Detects and processes key inputs.
SpawnDubsta_Activated
: Defines the logic to spawn the Dubsta vehicle based on the player's current position.
Contributions are welcome. Fork the repository, make your changes, and submit a pull request.
Specify your project's license here, providing a link or a file name if the license text is included in the repository.