Samuel's Development, Official Documentation
  • 🎉Welcome
  • 📑Overview
    • Resources
      • Bobcat Weapon Heist
        • Installation Guide
        • Configuration
      • Traphouse Robbery
        • Installation Guide
        • Configuration
      • Pacific Bank Heist
        • Installation Guide
        • Configuration
      • Oxy Run
        • Installation Guide
        • Configuration
      • Dumpster Diving
        • Installation Guide
        • Configuration
        • Log Configuration
      • Warehouse Heist
        • Installation Guide
        • Configuration
      • Oil Rig
        • Installation Guide
        • Configuration
      • Beekeeping
        • Installation Guide
        • Configuration
        • Log Configuration
      • Yacht Robbery
        • Installation Guide
        • Configuration
      • Notify
        • Installation
        • Configuration
      • Cocaine Mission
        • Installation Guide
        • Configuration
      • Advanced Drug Sales
        • Installation Guide
        • Configuration
    • Library
      • Installation & Integration
      • Modules
        • Client
          • Callback
          • StartProgress
          • LoadAnim
          • LoadModel
          • LoadPtfxAsset
          • ShowNotification
          • SendEmail
          • PoliceDispatch
          • StartHack
        • Server
          • Callback
          • Name
          • Money
          • Logger
          • Inventory
          • HasGroup
          • GetPlayer
          • GetPlayers
          • GetPlayerByIdentifier
          • GetIdentifier
          • GetPlayerGender
          • CheckVersion
        • Shared
          • Array
          • Table
          • String
          • Math
          • Locale
            • JSON Example
          • AwaitLoad
          • Framework
  • 📚F.A.Q
    • How do I change Locales?!
    • How to add Police Alerts?!
    • What types of dirty money are supported?
Powered by GitBook
On this page
  • Name.GetFullName
  • Name.GetFirstName
  • Name.GetLastName
  1. Overview
  2. Library
  3. Modules
  4. Server

Name

The SD.Name module provides functionality to retrieve player names.

Name.GetFullName

Purpose: Retrieves the passed players full name.

Parameters:

  • source (number): the player's server ID

Returns:

  • (string): Returns the full name of the player

Usage Example:

local playerFullName = SD.Name.GetFullName(source)
if playerFullName then
    print("Player Full Name: " .. playerFullName)
else
    print("Full name could not be retrieved.")
end

Name.GetFirstName

Purpose: Retrieves the passed players first name.

Parameters:

  • source (number): the player's server ID

Returns:

  • (string): Returns the first name of the player

Usage Example:

local playerFirstName = SD.Name.GetFirstName(source)
if playerFirstName then
    print("Player First Name: " .. playerFirstName)
else
    print("First name could not be retrieved.")
end

Name.GetLastName

Purpose: Retrieves the passed players Last Name.

Parameters:

  • source (number): the player's server ID

Returns:

  • (string): Returns the last name of the player

local playerLastName = SD.Name.GetLastName(1)
if playerLastName then
    print("Player Last Name: " .. playerLastName)
else
    print("Last name could not be retrieved.")
end
PreviousCallbackNextMoney

Last updated 1 year ago

📑