πŸ”—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 )

Last updated