Mads' Resource Documentation
  • 📺Youtube
  • 🤝Discord
  • ⭐Tebex
  • 👨‍💻GitHub
  • 👋Welcome!
  • General Info
    • ❓Questions and Answers
      • Is X script locked/encrypted?
      • I need support, where can I reach out?
      • How do I update my server artifacts?
      • How do I transfer a script from one account to another?
      • How do I set my game build?
    • ⚠️Common Problems
      • You lack the required entitlement
      • Failed to verify protected resource
      • Could not find dependency /assetpacks for resource
  • Resources
    • 🪑Sit Anywhere
      • Adding Custom Models
      • Falling Through the Map
      • Exports
      • Events
    • 🚁Helicopter Camera
      • Adding custom helicopters
      • Moving the UI above the minimap
      • Adding controller inputs
      • Controls
      • Exports
      • Events
    • 🚙Slash Tires
      • Exports
      • Events
    • 🕶️Stungrenade
      • Adding the Stungrenade as an item
      • Measures Against Cheaters
      • Exports
      • Events
    • 🪖CS Styled Killfeed
      • General Information
      • Exports - Client Side
      • Exports - Server Side
      • Examples
      • Adding Messages to the feed
      • Weapons List / Death Reasons
      • Changing the position if the killfeed
    • Crouch & Crawl
      • Exports
    • 🔫Taser Effect
    • 🔭Telescopes
    • 🩺Crutches
      • How to make the script compatible with ps-walkstyle
    • ⛽No Exploding Pumps
    • 👠Hookers
Powered by GitBook
On this page
  • Groups
  • CreateGroup
  • DoesGroupExist
  • AddPlayerToGroup
  • RemovePlayerFromGroup
  • GetPlayerGroup
  • IsPlayerInGroup
  • SetGroupAttribute
  • GetGroupAttribute
  • Lobbies
  • CreateLobby
  • DeleteLobby
  • DoesLobbyExist
  • AddPlayerToLobby
  • RemovePlayerFromLobby
  • GetPlayerLobby
  • SetLobbyAttribute
  • GetLobbyAttribute
  • AddGroupToLobby
  • RemoveGroupFromLobby
  1. Resources
  2. CS Styled Killfeed

Exports - Server Side

PreviousExports - Client SideNextExamples

Last updated 1 year ago

Groups

Read for more info.

CreateGroup

@param name string
@param attributes table
@return groupTable table
CreateGroup(name, attributes)

This is used to create a group after the initial start of the script.

DoesGroupExist

@param name string
@return exists boolean
DoesGroupExist(name)

Checks if the group exists.

AddPlayerToGroup

@param playerId int
@param name string
@return success boolean
AddPlayerToGroup(playerId, name)

Adds a player to the specified group.

RemovePlayerFromGroup

@param playerId int
@param name string
@return success boolean
RemovePlayerFromGroup(playerId, name)

Removes the player from the group.

GetPlayerGroup

@param playerId int
@return groupName string
GetPlayerGroup(playerId)

Gets the group the specified player is in.

IsPlayerInGroup

@param playerId int
@param group string
@return inGroup boolean
IsPlayerInGroup(playerId, group)

Check if the player is in the group.

SetGroupAttribute

@param name string
@param attributes table
@param value any
SetGroupAttribute(name, attribute, value)

A setter for group attributes, you can also use this to remove any attributes by passing nil as a value.

GetGroupAttribute

@param name string
@param attributes table
@return retval any
GetGroupAttribute(name, attribute)

A getter for group attributes.

Lobbies

CreateLobby

@param name string
@param attributes table
@return lobbyTable table
CreateLobby(name, attributes)
GetGroupAttribute(name, attribute)

This is used to create a lobby after the initial start of the script.

DeleteLobby

@param name string
@return success boolean
DeleteLobby(name)

This is used to delete a lobby after the initial start of the script.

DoesLobbyExist

@param name string
@return exists boolean
DoesLobbyExist(name)

Checks if the specified lobby exists.

AddPlayerToLobby

@param playerId int
@param name string
@return success boolean
AddPlayerToLobby(playerId, name)

Adds a player to the specified lobby.

RemovePlayerFromLobby

@param playerId int
@param name string
@return success boolean
RemovePlayerFromLobby(playerId, name)

Removes the player from the lobby.

GetPlayerLobby

@param playerId int
@return groupName string
GetPlayerLobby(playerId, name)

Gets the lobby the specified player is in.

SetLobbyAttribute

@param name string
@param attributes table
@param value any
SetLobbyAttribute(name, attribute, value)

A setter for lobby attributes, you can also use this to remove any attributes by passing nil as a value.

GetLobbyAttribute

@param name string
@param attributes table
@return retval any
GetLobbyAttribute(name, attribute)

A getter for lobby attributes.

AddGroupToLobby

@param lobby string
@param group string
@return success boolean
AddGroupToLobby(lobby, group)

Adds every member of a group to a lobby.

RemoveGroupFromLobby

@param lobby string
@param group string
@return success boolean
RemoveGroupFromLobby(lobby, group) 

Removes every member of a group from a lobby.

See for more info.

🪖
Groups
Lobbies