L2S Documentation
DiscordTebex
  • Documentation
  • Information
    • Discord Roles
    • How to update your asset
    • FiveM Asset Escrow System
  • Coding Information
    • Webhook System
    • Register Key Mapping
    • Translation System
  • ASSETS & GUIDES
    • 🚨Dispatch
      • ⤵️Installation
      • ⚙️Configuration
        • Settings
        • API
        • Hub
        • CCTV
        • Dispatch
        • UI
      • 💻Integration
        • Exports
          • Client
          • Server
        • Police Alerts
        • Radio Channel
        • Duty System
    • 🏨Hotels V2
      • ⤵️Installation
      • ⚙️Configuration
        • Config
        • Elevators
        • Hotels
      • 💻Exports
    • 👮Police Hub
      • ⤵️Installation
      • ⚙️Configuration
      • 💻Events & Alerts
    • 💀Gangs Turf
      • ⤵️Installation
      • ⚙️Configuration
        • Settings
        • Gangs
      • 💻Exports
      • 📚Tutorial
    • 🔫Paint Ball
      • ⤵️Installation
      • ⚙️Configuration
        • Settings
        • Clothes
        • Locations
      • 💻Exports
Powered by GitBook
On this page
  1. ASSETS & GUIDES
  2. Hotels V2

Exports

Take Free Room (to link when new character created)

--- This function triggers the client event to retrieve an empty hotel room
--- @param days integer - The number of days the room is needed
--- @return None

-- Client-side: Notify the server to get an empty room
TriggerClientEvent('l2s-hotel:server:getEmptyRoom', days)
--- This function triggers a request for an empty hotel room
--- @param source integer - The identifier of the player making the request
--- @param days integer - The number of days the room is needed
--- @return None

-- Server-side: Request an empty room for a player
TriggerEvent('l2s-hotel:server:getEmptyRoom', source, days) 

PreviousHotelsNextPolice Hub
🏨
💻