🏠
Artz Script Documents
  • Home
  • Scripts
    • Artz Police Dispatch
      • Installation
      • API Functions
    • Artz Emotes Menu
      • Installation
    • Housing System
      • Installation
      • Framework
      • Configuration
      • Open Functions
      • API
    • Dance Battle
  • REDM SCRIPTS
    • Printer Script
      • Installation
      • Basic Config
Powered by GitBook
On this page
  1. Scripts
  2. Housing System

API

Api functions for your scripts

Client Side

On player enter in house:

RegisterNetEvent('artz_housing:PlayerEnterInHouse', function(hid)
    --- Your code (Example Disable Weather)
end)

On player leave from house

RegisterNetEvent('artz_housing:PlayerLeaveHouse', function(hid)
    --- Your code (Example Enable Weather)
end)

Server Side

On player enter in house:

AddEventHandler('artz_housing:PlayerEnterInHouse', function(src, hid)
    --- Your code
end)

On player leave from house

RegisterNetEvent('artz_housing:PlayerLeaveHouse', function(src, hid)
    --- Your code
end)
PreviousOpen FunctionsNextDance Battle

Last updated 1 year ago