Infinite Mod
Discord
  • Infinite Documentation
  • Infinite Resources
    • Inf Garages
      • Installation
      • Config Settings
      • Exports
      • Customized
      • Optional Configuration
  • Inf Anti Bump
    • Installation
    • Config Settings
  • Inf Shop
    • Installation
    • Config Settings
    • Optional Configuration
Powered by GitBook
On this page
  • Client Exports
  • GetPlayerInGarage
  • Request Impount
  • Toggle Garage Blips On/Off
  • Server Export
  • GetAllVehiclesById
  1. Infinite Resources
  2. Inf Garages

Exports

List of exports client and server

Client Exports

GetPlayerInGarage

-- Get player in zone Garage 
local state = exports['inf_garage']:inGarage() 
-- return state : boolean

Request Impount

-- Additional impound for specified jobs to store in depot jobs. 
-- This will popup new input form ( selection : garageId, input : price )
-- selection garagaId will select all garage by the source job
-- example : Player job police - will get all garages are restricted to "police"
exports['inf_garage']:RequestImpound()

Toggle Garage Blips On/Off

exports['inf_garage']:toggleBlipGarages(true) -- to show blips
exports['inf_garage']:toggleBlipGarages(false) -- to hide blips

Server Export

GetAllVehiclesById

-- Get all vehicle from user
local vehicles = exports['inf_garage']:GetAllVehiclesById(source)

-- return : vehicles[]
-- @model : number
-- @vehicleType : string
-- @plate : string
-- @garage : string
-- @depotprice : number
-- @stored : boolean
PreviousConfig SettingsNextCustomized

Last updated 6 days ago