Gets called when a
Player requests to play on this server (before
OnSpawn and after
OnClientAuthenticate). It is recommended to make sure that every
Player gets a unique
Base.
Code cpp:
VAULTSCRIPT VAULTSPACE Base OnPlayerRequestGame(VAULTSPACE ID) VAULTCPP(noexcept);
Code c:
forward OnPlayerRequestGame(ID);
ID - the ID of the
Player
You have to return a
Base. This is the model which will represent the
Player in-game. By returning zero, vaultmp will automatically choose a currently unused model.
Code cpp:
Base VAULTSCRIPT OnPlayerRequestGame(ID player)
{
Base base = static_cast<Base>(0x00030D82); // Carter from Fallout 3
return base;
}