mirror of
https://github.com/YimMenu/YimMenuV2.git
synced 2026-10-10 03:43:15 +08:00
08cb3887b6
* feat(vehicle): Personal Vehicle Spawner * Add Vinewood Club Garage & Clone PV * Use different approach for clone PV * some fixes * Stuff * Update lua bindings
21 lines
500 B
C++
21 lines
500 B
C++
#include "core/commands/Command.hpp"
|
|
#include "game/backend/PersonalVehicles.hpp"
|
|
#include "game/pointers/Pointers.hpp"
|
|
|
|
namespace YimMenu
|
|
{
|
|
class RequestPersonalVehicle : public Command
|
|
{
|
|
using Command::Command;
|
|
|
|
virtual void OnCall() override
|
|
{
|
|
if (!*Pointers.IsSessionStarted)
|
|
return;
|
|
|
|
PersonalVehicles::GetCurrent()->Request();
|
|
}
|
|
};
|
|
|
|
static RequestPersonalVehicle _RequestPersonalVehicle{"requestpv", "Request Personal Vehicle", "Requests your current Personal Vehicle."};
|
|
} |