Configuration

Resource does not currently include any config files, they are not really needed.

Changing Active Roles

You will want to change the active roles that are being displayed to fit your own server. You can do this within the class constructor within the JavaScript files.

html/scripts/playerlist.js

Example

class Playerlist {
    constructor() {
        this.players = [];
        this.roles = [
            { name: 'Police', id: 'police', count: 0, icon: 'fa-shield-halved' },
            { name: 'EMS', id: 'ems', count: 0, icon: 'fa-kit-medical' },
            { name: 'Fire', id: 'fire', count: 0, icon: 'fa-fire' },
            { name: 'Lawyer', id: 'lawyer', count: 0, icon: 'fa-gavel' },
            { name: 'Taxi', id: 'taxi', count: 0, icon: 'fa-car-side' },
            { name: 'Towing', id: 'towing', count: 0, icon: 'fa-car-burst' }
        ];
        $(document).ready(() => {
            $(document).keyup((e) => this.handle_exit(e));
        });
    }
...

Here you should ensure the id matches the job id you want to count.

  • Name: The name / label for the job.

  • ID: The unique ID for the job this should match your servers job list.

  • Count: Stores the amount of players with the job leave this as 0.

  • Icon: Font awesome icon to represent the job: https://fontawesome.com

Last updated