Nexus VR Backpack is a replacement for the default Roblox backpack user interface for VR players. It is intended to be used with Nexus VR Character Model, but can be used without it.
With Nexus VR Character Model V.2.4.0 and later, Nexus
VR Character Model is able to loaded with either the
default configuration. In the loader for Nexus VR Character Model,
the value of NexusVRBackpackEnabled
under Extra
must
be set to true
. By default, this is enabled for
the V.2.4.0 loader. Previous loaders will not have this
property and will default to be disabled unless added.
Nexus VR Backpack can be used with or without Nexus
VR Character Model. Nexus VR Character Model will
include Nexus VR Backpack if it is set to load. Otherwise,
it will need to be provided in the game. An updated
version can be loadeed using require(10728805649)()
,
but a static version can be used. NexusVRBackpack
as
a module in ReplicatedStorage
is recommended but
not required.
To load Nexus VR Backpack, Load
in the module needs
to be called.
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local NexusVRBackpack = require(ReplicatedStorage:WaitForChild("NexusVRBackpack"))
NexusVRBackpack:Load()
Nexus VR Backpack exposes a couple functions for manipulating the backpack.
--References the API.
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local NexusVRBackpack = require(ReplicatedStorage:WaitForChild("NexusVRCharacterModel")).Api:WaitFor("Backpack") --Nexus VR Character Model V.2.4.0 or newer only.
local NexusVRBackpack = require(ReplicatedStorage:WaitForChild("NexusVRBackpack")) --Any version of Nexus VR Character Model (including V.2.4.0 or later) or no version at all.
--Changes the key to open the backpack from the Right Thumbstick.
NexusVRBackpack:SetKeyCode(Enum.KeyCode.X)
--Changes the UserCFrame the backpack will open at from the Right Hand.
NexusVRBackpack:SetUserCFrame((Enum.UserCFrame.Left)
--Enables or disables the backpack.
NexusVRBackpack:SetBackpackEnabled(false)
--Returns if the backpack is enabled or not.
print(NexusVRBackpack:GetBackpackEnabled())
Both issues and pull requests are accepted for this project.
Nexus VR Backpack is available under the terms of the MIT Liscence. See LICENSE for details.