Identix
Browse AddonsDownload RLIB
  • Introduction
  • Showcase
  • Changelog
    • 🟧2.6.0.0
    • 🟧2.5.2.0
    • 🟧2.5.1.0
    • 🟧2.5.0.0
  • FAQ
    • β—ΎAddon Won't Show
    • β—ΎChange Currencies
    • β—ΎChange Themes
    • β—ΎDisabling Names
    • β—ΎIncompatible Addons
    • β—ΎModified Script
    • β—ΎRefunds
    • β—ΎScript Errors
    • β—ΎWhen Are Updates?
  • ❱ Setup
    • β—ΎInstall
    • β—ΎVerify
    • β—ΎWorkshop
  • ❱ Configuration
    • β—ΎEnv
    • β—ΎFonts
    • β—ΎLanguages
    • β—ΎDatabase
    • β—ΎSettings
      • β—ΎNon-RP Gamemodes
  • ❱ First Use
    • β—ΎBinds
    • β—ΎPermissions
      • SAM
      • ServerGuard
      • ULX
      • xAdmin
  • ❱ Developers
    • β—ΎHooks
      • πŸ”—identix_fonts_register
      • πŸ”—identix_pl_authenticate
      • πŸ”—identix_pl_name_set
      • πŸ”—identix_pl_name_set_post
      • πŸ”—identix_pl_name_rs
      • πŸ”—identix_pl_name_rs_post
      • πŸ”—identix_pl_profile_rate
      • πŸ”—identix_rnet_register
Powered by GitBook
On this page
  • β–Έ Parameters
  • β–Έ Description
  • β–Έ Notes
  • β–Έ Example
  1. ❱ Developers
  2. Hooks

identix_pl_name_set

πŸŸ₯ π—¦π—˜π—₯π—©π—˜π—₯

Previousidentix_pl_authenticateNextidentix_pl_name_set_post

Last updated 4 years ago

identix_pl_name_set( targ, fname, lname)

β–Έ Parameters

ply targ player object

str fname first name for player

str lname last name for player

β–Έ Description

Sets new name for player

β–Έ Notes

Runs in the following order: πŸ’– Updates database πŸ’– DarkRP.storeRPName πŸ’– pmeta setalias πŸ’– set_firstname, set_lastname πŸ’– base:broadcast( )

β–Έ Example

local function your_hook( pl, fname, lname )

    // your custom hook function here

end
hook.Add( 'identix_pl_name_set', 'your_hook_id', your_hook )
hook.Add( 'identix_pl_name_set', 'your_hook_id', function( pl. fname, lname )

    // your custom hook function here

end )
local function your_hook( pl, fname, lname )

    // your custom hook function here

end
rhook.new.rlib( 'identix_pl_name_set', 'your_hook_id', your_hook )
β—Ύ
πŸ”—
ᡖˑᡃʸᡉʳ
ᡗᡉˣᡗ
ᡗᡉˣᡗ