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.luafile in the resource folder. - Locate the
Config.ImageAPItable. - Modify the values to your preferred settings.
- Replace the URL in the
urlfunction with your image source. You can use placeholders likemodelHash,modelName, andmodelLabelto customize the URL. - Update the
callbackfunction 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.luafile in the resource folder. - Locate the
Config.Imagestable. - 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.