The online racing simulator
[Cannot be solved] Use button to Pit
I'm using an Oculus Rift now when racing, but I'm having problems going into the Garage if I use a button instead of SHIFT P.

<?php 
Event OnLeaveRace
$userName )  # Player event
    
$NickName GetCurrentPlayerVar("NickName");
    
# Needed for when in VR mode    
    
openPrivButton"vr_pit",95,185,10,6,4,-1,16,"^7PIT",OnClick_Pit);    
EndEvent

Sub OnClick_Pit
($KeyFlags,$userName)
    
$NickName GetCurrentPlayerVar("NickName");
    
cmdLFS"/pitlane " $NickName);
EndSub
?>


On my server, which is used for hot lapping, once you finish the single lap, you get spectated. This is to stop people just sitting around getting in other peoples way. This works fine.

If I then SHIFT P from the main screen, then this takes me into the garage. Problem is with headset on, very hard to tell where the keys on my keyboard are. Spacebar is fine, so I can aim with headset, rummage for spacebar, and click.

I was hoping if I had a button, then I could aim at that, then use spacebar to go to proper screen, but when I click my button, I get "Parameter is not valid".

I'm using AutoX layout on BL1X, and I even placed a pitbox and pit arrow. Doesn't help.

Is there a way to go to garage via a button?
I'm afraid you need local insim for that. Host cannot send guest car to garage. The pitlane command only respawns a car.
Pity Frown

But thanks for the response.
This thread is closed

FGED GREDG RDFGDR GSFDG