Friday, September 20, 2024 4:36:45 AM
> settings

Customize


Authenticate

> _fnc_hasAccessToTerritory.html.erb
<article class="uk-article">
    <h1 class="uk-article-title">ESM_fnc_hasAccessToTerritory</h1>
    <p class="uk-article-meta">Checks to see if a player UID has minimium access level to a territory</p>
    <h4 class="uk-margin-remove">Input: <code><span class="esm-text-color-toast-yellow">&lt;ARRAY&gt;</span></code></h4>
    <dl class="uk-description-list">
        <dd><code>_this select 0: <span class="esm-text-color-toast-blue">_flagObject</span> <span class="esm-text-color-toast-yellow">&lt;OBJECT&gt;</span></code></dd>
        <dd>The territory's flag object</dd>
        <dd><code>_this select 1: <span class="esm-text-color-toast-blue">_playerUID</span> <span class="esm-text-color-toast-yellow">&lt;STRING&gt;</span></code></dd>
        <dd>The player's UID to check</dd>
        <dd><code>_this select 2: <span class="esm-text-color-toast-blue">_minimumAccessLevel</span> <span class="esm-text-color-toast-yellow">&lt;STRING&gt;</span> <span class="esm-text-color-toast-green">[Optional]</span></code></dd>
        <dd>The minimium access level the player MUST have.<br>Available options: <code>build</code>, <code>moderator</code>, and <code>owner</code>.<br>This parameter is optional and defaults to <code>build</code></dd>
    </dl>
    <h4 class="uk-margin-remove">Output: <code><span class="esm-text-color-toast-yellow">&lt;BOOL&gt;</span></code></h4>
    <dl class="uk-description-list">
        <dd><code>_this: <span class="esm-text-color-toast-blue">_hasAccess</span> <span class="esm-text-color-toast-yellow">&lt;BOOL&gt;</span></code></dd>
        <dd>Whether the player UID has the minimal level access to the territory</dd>
    </dl>
    <h4 class="uk-margin-remove">Examples</h4>
    <pre>[_flagObject, "76541234567891234"] call ESM_fnc_hasAccessToTerritory;</pre>
    <pre>[_flagObject, "76541234567891234", "owner"] call ESM_fnc_hasAccessToTerritory;</pre>
</article>
All opinions represented herein are my own
- © 2024 itsthedevman
- build 340fbb8