πidentix_pl_name_set
π₯ π¦ππ₯π©ππ₯
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 )Last updated