ConfigurationAdvanced
Images
Learn how to configure the images for interiors.
Image API
The image API fetches images from an external source and displays them in the UI. This can be useful for displaying images of items, locations, or other content in your resource.
Change API
- Open the
config.lua
file in the resource folder. - Locate the
Config.ImageAPI
table. - Modify the values to your preferred settings.
- Replace the URL in the
url
function with your image source. You can use placeholders likemodelHash
,modelName
, andmodelLabel
to customize the URL. - Update the
callback
function to return the image URL from the result object. - Save the file and restart the resource.
Vehicle Images
The resource also allows you to specify image URLs for vehicles.
Set Vehicle Image
- Open the
config.lua
file in the resource folder. - Locate the
Config.Images
table. - Add a new entry in the table, structured as follows:
- Replace
'vehicle_model'
with the model name of the vehicle. - Replace the URL with the image source for the vehicle.
- Save the file and restart the resource.