For the complete documentation index, see llms.txt. This page is also available as Markdown.

3️⃣Exports

Server

local rented = exports['am-rentals']:isVehicleRented('ABC1234')
  • param: Plate

  • return: boolean

Event Handlers

am-rentals:server:onRentalExpired : fires when any rental expires (both NPC and player-owned)

AddEventHandler('am-rentals:server:onRentalExpired', function(data)
    -- data.citizenid   (string)
    -- data.model       (string)
    -- data.plate       (string)
    -- data.rentalType  ('npc' | 'player')
end)

am-rentals:server:onLostAndFoundAvailable : fires when lost & found items are ready to recover

AddEventHandler('am-rentals:server:onLostAndFoundAvailable', function(data)
    -- data.citizenid   (string)
    -- data.model       (string)
    -- data.plate       (string)
    -- data.itemCount   (number)
    -- data.lostFoundId (number)
    -- data.displayName (string)
end)
What can i do with this ?

You can use this Event handlers to add your own custom logic when a rental ends, or lost and found items are available to recover, by example you can set a phone email when this happens.

Last updated