The online racing simulator
getmodinfo error
12/16/2023 5:26:11 PM -> Syntax error: in file ".\default\.\includes\.\scriptler\ddee.lpr" at line #76
The function: getmoddedcarinfo does not exist
Function 'getmodinfo' script aborted
12/16/2023 5:26:24 PM -> Syntax error: in file ".\default\.\includes\.\scriptler\ddee.lpr" at line #78
The function: getmoddedcarinfo does not exist
Function 'getmodinfo' script aborted

When I use the command nothing happens, only my ping on the server increases. When I look at the log, the above error appears
Attached files
lfsrestapi_Info (3).txt - 7.6 KB - 75 views
well it error says: the function does not exist().
That simply means LFSLapper doesnt reconize the function.

According to the changelog of V7.0.9.0 it should be getmodinfo("");

4: [LapperFunction] getmodinfo(""); Get modinfo
-2 differend ways to request modinfo , by username( player must be on track!!!) or by SkinID (getcurrentplayervar("Car"))

$modinfo = getmodinfo("Bass-Driver");
or
$modinfo = getmodinfo("E25059");

#example: privmsg("Name of mod:".$modinfo["name"]."");

list of variables:
status,id,name,descriptionshort,description,userid,username,wip
publishedat,numdownloads,currusage,rating,numratings,staffpick
tweakmod,version,lastdownloadedat,class,ev
icecc,icenumcylinders,icelayout,evredLine,drive,shifttype
power,maxpowerrpm,mass,bhp,powerweightratio,bhpton,fueltanksize

EDIT: I think you have found a testscript from the early versions of the RestAPI implementation.
Always check the changelog for the correct syntax of these Lapper functions/events.
Name of mod:Wrong dimension Array
gives the above error
can you post the code please
CASE "!hh":
$modinfo = getmodinfo("arda556");
privmsg("Name of mod:".$modinfo["name"]."");
BREAK;
12/16/2023 5:25:56 PM -> Var not defined on file: ".\default\LFSTurbo.lpr" at line #174

#174: $StoreOfflineData = 0; #storedvalue.dbs Store Offline data , even when the player doesnt exist in the database.
"Var not defined on file" means variable does not exist.
Quote from arda556 :CASE "!hh":
$modinfo = getmodinfo("arda556");
privmsg("Name of mod:".$modinfo["name"]."");
BREAK;

Is the problem with me?
do you use $modinfo for something else.

This should work.

$modinfo is an array of variables and values that will be received from getmodinfo("arda556");

You could try to enter a modname instead of playername.
Although the player must be on track with a modded vehicle.
I don't use $modinfo for anything else. It gave the same error when I typed the tool name instead of the username
try something else

CASE "!hh":
$modinformation = getmodinfo("arda556");
privmsg("Name of mod:".$modinformation["name"]."");
BREAK;

"Name of the mod:" only discards this, not the name
-What is the version of LFSlapper you are using.
-Do you fill in the ClientID and ClientSecret.
-Did you change other pieces of code in your scripts.
-Did you try getmodinfo("172CB8"); for example
-What are the other errormessages you got.
There was no place where I could add ClientID and ClientSecret, I looked and added them from other topics, but I did not find where clientsecret is.
its written in the changelog of V7.0.9.0

-Register your LFSLapper @ https://www.lfs.net/account/api
-Fill in your ClientID and ClientSecret in myInc.LPR (includes/myinc.lpr)
there is only the clientid of what I created
clientsecret not showing
Are you sure you did it correctly?
Because when i register my application it shows me the 2 codes.



And in MyInc.LPR

#####LFS REST API##### register your LFSLapper @ https://www.lfs.net/account/api/register
$RestAPIClientID = "";
$RestAPIClientSecret = "";
Attached images
LFSLapper_RestAPI.png
There are only these
Attached images
Ekran Görüntüsü (979).png
appeared when I recreated it and now it works
Quote from arda556 :appeared when I recreated it and now it works

Can you help me too the command does not work in 7E Version

FGED GREDG RDFGDR GSFDG