The online racing simulator
how to put pitlane and jobs in my insim?
I want to make the "pitlane and systems where the player arrives at the place take the job and deliver it in another place
You need to find the X and Y coordinates that you want to use in each area of track and surrounds (pits, access roads, off-road area, etc) and define this X Y 'zone' for each task.

As in;

Zone1 - arrive in specified area (zone) and this is used as a trigger to be given details of 'job', and told where delivery should be made

Zone2 - specified area (zone trigger point) for delivery

There is an Open Source Cruise Insim (HERE) that you may be able to use to find the info you need.

And someone asked similar question in that topic about XY Zones (HERE), but I never searched to find out if it was answered.

Also, you could try searching on forum with 'x y coordinates' as the keywords.

Found THIS bit of info, that may help?

An easy way to find the X and Y coordinates of any track is to use the LFSLapper (lapper) InSim.

When lapper is running, just type !zone, and you will be given the X and Y coordinates.

Once you have recorded these coordinates, you can use these in the InSim you are using.

If you use 'X Y zone' as keywords, you will get lots of info on their use in lapper.
#region ' Blackwood '
case "BL1":

#region ' Job From House 1 '
if (C.JobFromHouse1 == true)
{
if (C.JobToSchool == true)
{
InSim.Send_BTN_CreateButton("^7Escort to KinderGarten!", Flags.ButtonStyles.ISB_DARK, 5, 30, 6, 108, 7, C.UniqueID, 2, true);
}
}
#endregion

#region ' Job From House 2 '
if (C.JobFromHouse2 == true)
{
if (C.JobToSchool == true)
{
InSim.Send_BTN_CreateButton("^7Escort to KinderGarten!", Flags.ButtonStyles.ISB_DARK, 5, 30, 6, 108, 7, C.UniqueID, 2, true);
}

}
#endregion

#region ' Job From House 3 '
if (C.JobFromHouse3 == true)
{
if (C.JobToSchool == true)
{
InSim.Send_BTN_CreateButton("^7Escort to KinderGarten!", Flags.ButtonStyles.ISB_DARK, 5, 30, 6, 108, 7, C.UniqueID, 2, true);
}

}
#endregion

#region ' Job From Shop '
if (C.JobFromShop == true)
{
if (C.JobToHouse1 == true)
{
InSim.Send_BTN_CreateButton("^7Delivery to Kou-chan", Flags.ButtonStyles.ISB_DARK, 5, 30, 6, 108, 7, C.UniqueID, 2, true);
}
if (C.JobToHouse2 == true)
{
InSim.Send_BTN_CreateButton("^7Delivery to Johnson's", Flags.ButtonStyles.ISB_DARK, 5, 30, 6, 108, 7, C.UniqueID, 2, true);
}
if (C.JobToHouse3 == true)
{
InSim.Send_BTN_CreateButton("^7Delivery to Shanen's", Flags.ButtonStyles.ISB_DARK, 5, 30, 6, 108, 7, C.UniqueID, 2, true);
}
}
#endregion

#region ' Job From Store '
if (C.JobFromStore == true)
{
if (C.JobToHouse1 == true)
{
InSim.Send_BTN_CreateButton("^7Delivery to Kou-chan", Flags.ButtonStyles.ISB_DARK, 5, 30, 6, 108, 7, C.UniqueID, 2, true);
}
if (C.JobToHouse2 == true)
{
InSim.Send_BTN_CreateButton("^7Delivery to Johnson", Flags.ButtonStyles.ISB_DARK, 5, 30, 6, 108, 7, C.UniqueID, 2, true);
}
if (C.JobToHouse3 == true)
{
InSim.Send_BTN_CreateButton("^7Delivery to Shanen!", Flags.ButtonStyles.ISB_DARK, 5, 30, 6, 108, 7, C.UniqueID, 2, true);
}
To be honest, I don't understand the code you are using - I'm not a coder. I can infer it's placing specific sized and coloured buttons, but that's it.

LFS doesn't know where "Job From House 1" is (or 2, 3, etc), which is why you have to make a zone (specify the X and Y coordinates), so that when a car enters a specific zone, this triggers your buttons.

A very simple way of making a zone would be to go into Autocross mode (SHIFT U) then placing an InSim circle (can be found under Marshall tab, along with Marshalls, route checker, etc.) anywhere on or off track, in pits, etc.

Use letter O to place circle and letters W or E to make circle smaller/larger as appropriate.

Take note of circle index number, and use that number to trigger code when car enters circle.

Rather than using one giant circle to create a zone, there's nothing to stop you using multiple smaller circles to create your zone, and having multiple index numbers triggering the same piece of code.

1 x 10m circle - index number 0 = Zone 1
2 x 5m circles - index numbers 0 + 1 = Zone 1
5 x 2m circles - index numbers 0, 1, 2, 3 + 4 = Zone 1

No idea what code would look like, but it would follow rules like (assuming multiple circles for same zone) ....

IF car enters index number 0
or
IF car enters index number 1
or
IF car enters index number 2
....

then
do button code for Zone 1
If you need help, text me.
I'm brazilian too and I know some of c#

FGED GREDG RDFGDR GSFDG