GetStoreLocation

From NPC for VCMP 0.4 Servers
Revision as of 00:31, 13 October 2024 by Habi (talk | contribs)
Jump to navigation Jump to search


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";
}
...