GetStoreLocation: Difference between revisions
Jump to navigation
Jump to search
(Created page with ".") |
No edit summary |
||
Line 1: | Line 1: | ||
. | {{Welcome|desc=Gets the relative path where the store-files are downloaded| | ||
params=<source>NoParams</source>| | |||
retvals=The relative path of the hostname:port directory (eg. "127.0.0.1-8192" ) in which store-files (script/main.nut, vehicles/carcols.xml) are downloaded if npc was connected with -d or -D switch. Otherwise, null is returned (store-files are not downloaded i.e. skipped )| | |||
example=<source> | |||
local path_to_main_nut=GetStoreLocation(); | |||
if(path_to_main_nut) | |||
{ | |||
path_to_main_nut+="script/main.nut"; | |||
} | |||
... | |||
</source>| | |||
}} |
Revision as of 00:31, 13 October 2024
Description:
Gets the relative path where the store-files are downloaded
Parameters:
NoParams
Return Values:
The relative path of the hostname:port directory (eg. "127.0.0.1-8192" ) in which store-files (script/main.nut, vehicles/carcols.xml) are downloaded if npc was connected with -d or -D switch. Otherwise, null is returned (store-files are not downloaded i.e. skipped )
Example
local path_to_main_nut=GetStoreLocation(); if(path_to_main_nut) { path_to_main_nut+="script/main.nut"; } ...