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

Locations & Backgrounds

Configure the character selection backgrounds and camera locations.

๐Ÿ“ Configuration File

Background locations are configured in:

config/locations.lua

๐ŸŽฌ Location Structure

local Locations = {}

Locations.List = {
    {
        id = 1,
        label = 'Location Name',           -- Display name
        img = 'location-1',                 -- Image filename
        coords = vec4(x, y, z, heading),    -- Camera/player position
    },
    -- More locations...
}

return Locations

โš™๏ธ Location Properties

Property
Type
Description

id

number

Unique identifier (sequential)

label

string

Name shown in the UI

img

string

Image filename (without extension)

coords

vec4

Position (x, y, z) and heading (w)


๐Ÿ–ผ๏ธ Adding Custom Backgrounds

Step 1: Choose a Location In-Game

  1. Go to your desired location

  2. Find a good camera angle

  3. Get coordinates: /coords or use a coords script

Step 2: Take a Screenshot

  1. Position your camera

  2. Take a high-quality screenshot

  3. Crop to 16:9 aspect ratio (recommended: 1920x1080 or 800x450)

Step 3: Add the Image

Save your image to:

And also to (for development):

Step 4: Add to Config


๐Ÿ“‹ Default Locations

The script comes with these pre-configured locations:


๐ŸŽฅ Camera Behavior

When a player selects a background:

  1. Player ped is teleported to the coordinates

  2. Camera is positioned 1 unit in front of the player

  3. Player faces the camera (180ยฐ offset from heading)

  4. Shallow depth of field is applied for visual effect

Camera Settings

The camera configuration is in config/camera.lua:


๐ŸŒค๏ธ Weather Configuration

Weather settings during character selection are in config/weather.lua:


โœจ Effects Configuration

Particle effects are in config/effects.lua:


๐ŸŽญ Animation Configuration

Character animations/scenarios are in config/animation.lua:


๐Ÿ–ผ๏ธ Image Guidelines

Property
Value

Format

PNG or JPG

Aspect Ratio

16:9

Resolution

800x450 (min) to 1920x1080 (max)

File Size

Under 500KB

Tips for Good Screenshots

  1. Use good lighting - Dawn/dusk for dramatic effect

  2. Clear weather - Avoid rain/fog unless intentional

  3. Hide UI - Remove all HUD elements

  4. Steady camera - No motion blur

  5. Interesting angles - Show the location's best features


๐Ÿ“‹ Complete Example


โ“ Troubleshooting

Image Not Showing

  1. Check filename matches exactly (case-sensitive)

  2. Ensure image is in web/build/imgs/

  3. Rebuild if using development mode

Wrong Camera Position

  1. Adjust z-coordinate (height)

  2. Change heading for different angle

  3. Test in-game before finalizing

Last updated