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. Gangs Turf

Exports

Usefull Exports

--- Checks if the player is currently within their gang territory
--- @param PlayerId integer - The ID of the player to check
--- @return boolean - Returns true if the player is inside their gang territory, false otherwise
exports['l2s-gangsturf']:PlayerInHisGang(PlayerId)

--- Adds the specified amount to the gang's level
--- @param gang string - The name or identifier of the gang
--- @param amount integer - The amount to add to the gang level
exports['l2s-gangsturf']:AddGangLevel(gang, amount)

--- Removes the specified amount from the gang's level
--- @param gang string - The name or identifier of the gang
--- @param amount integer - The amount to remove from the gang level
exports['l2s-gangsturf']:RemoveGangLevel(gang, amount)

--- Retrieves the current level of the specified gang
--- @param gang string - The name or identifier of the gang
--- @return integer - Returns the current level of the gang
exports['l2s-gangsturf']:GetGangLevel(gang)
--- Checks if the player is currently inside their gang territory
--- @return boolean - Returns true if the player is inside their gang territory, false otherwise
exports['l2s-gangsturf']:PlayerInHisGang() 

--- Checks if the specified coordinates fall within the radius of any gang territory
--- @param x number - The x-coordinate to check
--- @param y number - The y-coordinate to check
--- @return string - Returns the name of the gang if the coordinates are within their territory, otherwise returns an empty string
exports['l2s-gangsturf']:CheckCoords(x, y)

PreviousGangsNextTutorial

Last updated 6 months ago

๐Ÿ’€
๐Ÿ’ป