Перейти к содержанию

IsCefEnabled

Материал из RAGE MP Wiki Archive
Версия от 21:52, 22 декабря 2022; imported>Xabi
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)

Returns if CEF is enabled on the client.

bool NAPI.Player.IsCefEnabled(Player player);

Parameters

  • player: Parameter input should be in Player type.

Returns

  • bool: true if CEF is enabled for the client, false otherwise.

Example

<syntaxhighlight lang="csharp"> if (!NAPI.Player.IsCefEnabled(player)) {

   NAPI.Player.KickPlayer(player, "Please enable CEF first for our beast server!");

} </syntaxhighlight>