I’m wondering, if you could spawn a vehicle for the player, and have them enter it when they join,
ex:
function handlePlayerJoin(player_id)
local name = MP.GetPlayerName(player_id)
if MP.IsPlayerGuest(player_id) then
MP.DropPlayer(player_id, "Please create an account before playing, thank you.") -- in case it doesn't get dropped
end
-- How would I spawn the vehicle? Then, how would I make the player enter it here?
end
function onInit() -- onInit
MP.RegisterEvent("onPlayerJoin", "handlePlayerJoin") -- Handle onPlayerJoin
end
I’m trying to spawn them in as the Unicycle at a certain spawn point (I have the coordinates for it already)