gunware docs
  • Docs GunWare
  • GW-SKINV2
    • State bags
    • Crée une tenue (exports)
    • Crée un items vêtements
    • getUrl
    • Command
    • config
    • token
  • GW-OFFLINEV2
    • exports
      • Client
      • Server
        • SetCustomState
        • DisplayEntity
        • SetDefaultAnim
    • Event
    • Config
    • target function
      • config.target.function.lua
Powered by GitBook
On this page
  1. GW-OFFLINEV2
  2. exports
  3. Server

DisplayEntity

Utilisation de DisplayEntity

La fonction DisplayEntity permet de modifier l'état d'affichage d'une entité en fonction de son identifiant.

Syntaxe :

exports["gw-offlineV2"]:DisplayEntity(identifier, bool)

Paramètres :

  • identifier (string) : L'identifiant unique de l'entité.

  • bool (boolean) : true pour afficher l'entité, false pour la masquer.

Exemple d'utilisation :

local playerIdentifier = "steam:110000112345678"
exports["gw-offlineV2"]:DisplayEntity(playerIdentifier, true) -- Afficher l'entité
exports["gw-offlineV2"]:DisplayEntity(playerIdentifier, false) -- Masquer l'entité

PreviousSetCustomStateNextSetDefaultAnim

Last updated 3 months ago