Jump to content

Player List 2.0.0

   (6 reviews)

1 Screenshot

About This File

PalatableBrownGrouse-small.gif

Requires RAGE Multiplayer 1.1.0 and above.

This resource adds a GTA Online like player list to your server.

 

Installing

Put playerlist into your server's client_packages directory, then add require('playerlist'); to client_packages/index.js.

 

Controls

Z = Toggle player list visibility.

PageUp = Move to the next page.

PageDown = Move to the previous page.

 

Customization

You have the ability to customize how a player is displayed in the list. Here's a list of shared variable keys used for customization:

PlayerListColor = This shared variable is used to specify which background color the player will have in the list. Uses an integer (HUD color ID), so go check the wiki.

PlayerListTag = This shared variable is used to give players a crew/clan tag next to their name in the list. Setting this value to more than 5 characters isn't recommended since the scaleform displays up to 5 characters. (deprecated in 2.0)

 

Crew Tag API (Serverside - v2.0 and above)

// Sets the crew tag of a player.
// "tag" being empty will reset player's crew tag.
// "tag" should not be more than 4 or 5 characters to prevent visual annoyances
player.setCrewTag(tag, {
    crewIsPrivate, // Boolean - makes the crew tag background a rectangle if true, indicates player owned clans
    crewIsRockstar, // Boolean - adds the Rockstar Games logo to the crew tag display if true
    playerCrewRank, // Number - player's rank in their crew, refer to crew ranks list below, ignored if crewIsPrivate is false
    crewTagColor // Array of numbers (red, green, blue) - the crew color
});

// Resets the crew tag of a player.
player.resetCrewTag();

// Crew ranks
Leader = 0 (100% crew color "strip" display)
Commissioner = 1 (80% crew color "strip" display)
Lieutenant = 2 (60% crew color "strip" display)
Representative = 3 (40% crew color "strip" display)
Muscle = 4 (20% crew color "strip" display)
Member = 5 (no crew color "strip" display)

 

Various crew tags:

vkNNtO3.png

tK5hc1Z.png

WILQBfB.png

eRJBay1.png

xptN9ys.png

 

Credits

TomGrobbe - mp_mm_card_freemode scaleform research

@rgnbgnhnd @Jer - Testing

 

Notes

  • This script uses mp.gui.chat.show function to toggle chat visibility when a player opens/closes the player list. Meaning if you have a custom chat, this resource might fail to toggle chat visibility.

 

Source code is available on GitHub in case you don't want to download: https://github.com/root-cause/ragemp-playerlist

Edited by rootcause


What's New in Version 2.0.0   See changelog

Released

  • Removed PlayerListTag shared variable support
  • Added player.setCrewTag and player.resetCrewTag functions

This change was made to fully support the crew tag system Rockstar uses in GTA Online.

  • Like 5

User Feedback

Create an account or sign in to leave a review

You need to be a member in order to leave a review

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

rgnbgnhnd

   1 of 2 members found this review helpful 1 / 2 members

Germany approved this resource.

Link to review
Guest cChaD

  

Good resource, do you know ho to add offset between each colomn ?

Link to review
×
×
  • Create New...