-- This example sets the area of interest (cargen) to the player's position with a radius of 100.0
-- Retrieve the player ped
local playerPed = PlayerPedId()
-- Retrieve the coordinates of the player.
local coords = GetEntityCoords(playerPed, false)
-- Set the area of interest to the player's position with a radius of 100.0
SetVehicleGeneratorAreaOfInterest(coords.x, coords.y, coords.z, 100.0)