server/addons/db/functions/fnc_getStore.sqf
Jacob Schmidt bec0adcdbf feat: Update build environment and add XEH PREP
This commit includes the following changes:

-   Updates the build environment in the GitHub Actions workflow to use `ubuntu-latest` instead of `ubuntu-22.04`.
-   Adds `playerGroup2Server` to the XEH_PREP.hpp file.
-   Updates the picture path in CfgMods.hpp to include the file extension.
2025-03-28 09:46:08 -05:00

25 lines
479 B
Plaintext

#include "..\script_component.hpp"
/*
* Function: forge_server_db_fnc_getStore
* Author: J. Schmidt
*
* Description:
* Retrieves a store from the database
*
* Arguments:
* 0: _name - Store name <STRING>
*
* Return Value:
* Store object or nil if not found
*/
params [["_name", "", [""]]];
if (_name isEqualTo "") exitWith {
ERROR_MSG("Store name cannot be empty");
nil
};
private _database = GETMVAR(GVAR(store),nil);
_database call ["getStore", [_name]]