@nativewrappers/fivem
Version: 
Native wrappers and utilities for use with FiveM.
7 lines (6 loc) • 354 B
TypeScript
/**
 * Cleans up a player name and returns one version to be displayed, and one pure version to be used for fuzzy matching.
 * In case the name has no ascii characters, the pure name will be "empty name".
 * NOTE: this is not perfect, but took me two hours to arrive to this point.
 */
export declare const cleanPlayerName: (original: string) => string;