mirror of
https://github.com/YimMenu/YimMenuV2.git
synced 2026-10-11 17:58:10 +08:00
feat(vehicle): Personal Vehicle Spawner (#579)
* feat(vehicle): Personal Vehicle Spawner * Add Vinewood Club Garage & Clone PV * Use different approach for clone PV * some fixes * Stuff * Update lua bindings
This commit is contained in:
1 parent
dacfa665f7
commit
08cb3887b6
12 files changed
+882
-54
No files matched your search
@@ -0,0 +1,21 @@
|
||||
#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."};
|
||||
}
|
||||
Reference in new issue
Block a user