The online racing simulator
Searching in All forums
(8 results)
edza1188
Demo licensed
Quote from MadCatX :Why don't you just use LFSTweak for that? Seriously, if you were able to do this yourself, you wouldn't be asking us how... I don't know how about the latest updates to cheat protection, but you could make perfectly working LFSTweak server as long as all players use the same settings in LFSTweak.

Its more easy to just give exe file
edza1188
Demo licensed
Quote from boothy :Which cars? You'll need a hex editor most likely, and lots of knowledge.

Well those will be demo cars. But how can I know which values I need to change?
LFS.exe modify
edza1188
Demo licensed
I wantes to know with what program I can modify LFS.exe file. I want to ''tweak'''cars and then save it to LFS.exe and then I can make a server with and give exe file to others so they can join to server.
edza1188
Demo licensed
Quote from mariuba2 :

if (C.HideGUI == 1)
{
// Car Button
InSim.Send_BTN_CreateButton("" + TempCars1, Flags.ButtonStyles.ISB_DARK, 4, 75, 0, 34, 140, Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].UniqueID, 2, false);
// Cash Button
if (Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].Cash > 0)
{
InSim.Send_BTN_CreateButton("^7$" + Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].Cash, Flags.ButtonStyles.ISB_DARK, 5, 12, 0, 109, 5, Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].UniqueID, 2, false);
}
if (Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].Cash < 0)
{
InSim.Send_BTN_CreateButton("^1$" + Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].Cash, Flags.ButtonStyles.ISB_DARK, 5, 12, 0, 109, 5, Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].UniqueID, 2, false);
}
// Total Distance Button
InSim.Send_BTN_CreateButton("^7" + Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].TotalDistance / 1000d + " km", Flags.ButtonStyles.ISB_DARK, 3, 12, 0, 121, 162, (Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].UniqueID), 2, false);

// Distance Bonus Button
InSim.Send_BTN_CreateButton("" + bonusStr, Flags.ButtonStyles.ISB_LIGHT | Flags.ButtonStyles.ISB_LEFT, 2, 25, 1, 141, 18, Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].UniqueID, 2, false);
InSim.Send_BTN_CreateButton("" + bonusStr, Flags.ButtonStyles.ISB_LIGHT | Flags.ButtonStyles.ISB_LEFT, 2, 25, 1, 141, 12, Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].UniqueID, 2, false);
InSim.Send_BTN_CreateButton("^7Bonus: ", Flags.ButtonStyles.ISB_DARK | Flags.ButtonStyles.ISB_LEFT, 4, 34, 0, 133, 13, Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].UniqueID, 2, false);
}
InSim.Send_BFN_DeleteButton(Enums.BtnFunc.BFN_DEL_BTN, 140, C.UniqueID);
InSim.Send_BFN_DeleteButton(Enums.BtnFunc.BFN_DEL_BTN, 5, C.UniqueID);
InSim.Send_BFN_DeleteButton(Enums.BtnFunc.BFN_DEL_BTN, 162, C.UniqueID);
InSim.Send_BFN_DeleteButton(Enums.BtnFunc.BFN_DEL_BTN, 18, C.UniqueID);
InSim.Send_BFN_DeleteButton(Enums.BtnFunc.BFN_DEL_BTN, 12, C.UniqueID);
InSim.Send_BFN_DeleteButton(Enums.BtnFunc.BFN_DEL_BTN, 13, C.UniqueID);
}
ClsConnections.cs
public byte HideGUI;

Not sure if it works cause i used notepad to make it, but last thing you need to do is make a command for it to close the buttons

There are a lot of errors that same lines are not in context and all below that command turned like it all is wrong
edza1188
Demo licensed
Quote from MadCatX :Post the code you use to do this, we might be able to tell you what's wrong with it.

Sorry, I dont have it anymore
Reset
edza1188
Demo licensed
Hi. I want a code in cruise when player resets car it cost him for example 400. I tryed to make but I just couldnt get it.
edza1188
Demo licensed
Quote from mariuba2 :#1

First identify C.HideGUI in ClsConnection or whatever.

Im not sure if it works but its just a example.

I cant get all errors away.
Can you make a code and tell what i need to write in clsConnection? These are buttons i want to hide:
// Car Button

InSim.Send_BTN_CreateButton("" + TempCars1, Flags.ButtonStyles.ISB_DARK, 4, 75, 0, 34, 140, Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].UniqueID, 2, false);

// Cash Button
if (Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].Cash > 0)
{
InSim.Send_BTN_CreateButton("^7$" + Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].Cash, Flags.ButtonStyles.ISB_DARK, 5, 12, 0, 109, 5, Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].UniqueID, 2, false);
}
if (Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].Cash < 0)
{
InSim.Send_BTN_CreateButton("^1$" + Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].Cash, Flags.ButtonStyles.ISB_DARK, 5, 12, 0, 109, 5, Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].UniqueID, 2, false);
}

// Total Distance Button
InSim.Send_BTN_CreateButton("^7" + Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].TotalDistance / 1000d + " km", Flags.ButtonStyles.ISB_DARK, 3, 12, 0, 121, 162, (Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].UniqueID), 2, false);


// Distance Bonus Button
InSim.Send_BTN_CreateButton("" + bonusStr, Flags.ButtonStyles.ISB_LIGHT | Flags.ButtonStyles.ISB_LEFT, 2, 25, 1, 141, 18, Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].UniqueID, 2, false);
InSim.Send_BTN_CreateButton("" + bonusStr, Flags.ButtonStyles.ISB_LIGHT | Flags.ButtonStyles.ISB_LEFT, 2, 25, 1, 141, 12, Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].UniqueID, 2, false);
InSim.Send_BTN_CreateButton("^7Bonus: ", Flags.ButtonStyles.ISB_DARK | Flags.ButtonStyles.ISB_LEFT, 4, 34, 0, 133, 13, Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].UniqueID, 2, false);

Quote from Fire_optikz001 :

int Jobnum = new Random.Next(1, 8);

This should work... i have no C# Knowledge so... give it a try and let me know?

That doesnt work \
Cruise coding!
edza1188
Demo licensed
I need help with some codes in Cruise inSim.

1.So I wanted to get the command that disable all buttons on screen. For example I write !hide and all buttons are hiddden like cash, cars, Kms.

2. How can I make these jobs to go random places? They are all to 1 place only.
case "!job":
if (StrMsg.Length == 1)
{
if (Connections[GetConnIdx(MSO.UCID)].JobToKinderGarten == 1 || Connections[GetConnIdx(MSO.UCID)].JobToFrank == 1 || Connections[GetConnIdx(MSO.UCID)].JobToLarry == 1 || Connections[GetConnIdx(MSO.UCID)].JobToJosh == 1 || Connections[GetConnIdx(MSO.UCID)].JobToPeter == 1)
{
InSim.Send_MTC_MessageToConnection("^1 Vienlaikus tu vari darit tikai vienu darbu!", Connections[GetConnIdx(MSO.UCID)].UniqueID, 0);
}
else if (Connections[GetConnIdx(MSO.UCID)].InShop == 1)
{
int Jobnum = new Random().Next(1, 8);
if (Jobnum == 1 || Jobnum == 5)
{
InSim.Send_MST_Message("/msg ^6> ^1 " + (Connections[GetConnIdx(MSO.UCID)].PlayerName) + " ^6Apstiprina darbu!");
InSim.Send_MTC_MessageToConnection("^6> Nogadat picu uz Simpsonu maju!", Connections[GetConnIdx(MSO.UCID)].UniqueID, 0);
Connections[GetConnIdx(MSO.UCID)].JobToJosh = 1;
}
if (Jobnum == 2 || Jobnum == 6)
{
InSim.Send_MST_Message("/msg ^6> ^1 " + (Connections[GetConnIdx(MSO.UCID)].PlayerName) + " ^6Apstiprina darbu!");
InSim.Send_MTC_MessageToConnection("^6> Nogadat picu uz ^2Autoservisu!", Connections[GetConnIdx(MSO.UCID)].UniqueID, 0);
Connections[GetConnIdx(MSO.UCID)].JobToPeter = 1;
}
if (Jobnum == 3 || Jobnum == 7)
{
InSim.Send_MST_Message("/msg ^6> ^1 " + (Connections[GetConnIdx(MSO.UCID)].PlayerName) + " ^6Apstiprina darbu!");
InSim.Send_MTC_MessageToConnection("^6> Nogadat picu uz KEN BLOCK DRIFT LAUKUMU!!", Connections[GetConnIdx(MSO.UCID)].UniqueID, 0);
Connections[GetConnIdx(MSO.UCID)].JobToFrank = 1;
}
if (Jobnum == 4 || Jobnum == 8)
{
InSim.Send_MST_Message("/msg ^6> ^1 " + (Connections[GetConnIdx(MSO.UCID)].PlayerName) + " ^6Apstiprina darbu!");
InSim.Send_MTC_MessageToConnection("^6> Nogadat picu uz striptiza namu!", Connections[GetConnIdx(MSO.UCID)].UniqueID, 0);
Connections[GetConnIdx(MSO.UCID)].JobToLarry = 1;
}
}
else if (Connections[GetConnIdx(MSO.UCID)].InFrank == 1 || Connections[GetConnIdx(MSO.UCID)].InJosh == 1 || Connections[GetConnIdx(MSO.UCID)].InPeter == 1 || Connections[GetConnIdx(MSO.UCID)].InLarry == 1)
{
InSim.Send_MST_Message("/msg ^6> ^1 " + (Connections[GetConnIdx(MSO.UCID)].PlayerName) + " ^6Apstiprina darbu!");
InSim.Send_MTC_MessageToConnection("^6> Nogadat bernu uz Esential Clubu!", Connections[GetConnIdx(MSO.UCID)].UniqueID, 0);
Connections[GetConnIdx(MSO.UCID)].JobToKinderGarten = 1;
}
}
else
{
InSim.Send_MTC_MessageToConnection("^1Nepareiza komada. Ludzu skaties ^2!help^7 komandu saraksta", MSO.UCID, 0);
}
break;

Waiting for answers
FGED GREDG RDFGDR GSFDG