Luman Studio
TebexDiscordYouTube
  • Documentation
  • FiveM Scripts
    • Squid Game
      • Doll Game
        • Installation
        • Customization
      • Dalgona Game
        • Installation
        • Customization
        • Manual Mode
      • Crystal Game
        • Installation
        • Customization
      • Mingle Game
        • Installation
        • Customization
      • Lobby MLO
        • Installation
        • Customization
  • Ghostbusters
    • Installation
    • Customization
  • Flatout Game
    • Ski Stunt
      • Installation
      • Customization
    • Cannon Stunt
      • Installation
      • Customization
  • Easter Game
    • Installation
    • Customization
  • RedM Scripts
    • Dragon Rider
      • Installation
      • Config and Permissions
      • More Dragons
      • Events
    • Bear Trap
      • Installation
      • Customization
    • Red Light
      • Installation
      • Customization
Powered by GitBook
On this page
  1. RedM Scripts
  2. Red Light

Customization

We provide advanced and flexible set of customization options:

Basic Options
-------------------
-- Basic options --
-------------------
Config.Fee = 10
Config.GameStartInterval = 10000
Config.GameDuration = 60000
Config.StartPoint = vector3(-206.76, 799.85, 125.12)
Config.StartPointSize = 3.5
Config.StartPointColor = {255, 255, 255, 125}
Config.StartPointRenderDistance = 50.0
Config.StartPointBlip = {
    Id = `blip_ambient_death`, -- https://github.com/femga/rdr3_discoveries/tree/master/useful_info_from_rpfs/textures/blips
    Color = `BLIP_MODIFIER_MP_COLOR_27`, -- https://github.com/femga/rdr3_discoveries/tree/master/useful_info_from_rpfs/colours
    Scale = 0.75,
}
Config.EnableBots = true

-----------------
-- Item Reward --
-----------------
Config.ItemRewards = {
    {name = 'water', amount = 1},
}
Config.ItemRewardsAntiSpam = true -- Don't give reward when playing alone

Advanced Options
------------------
-- Song Options --
------------------
Config.DollySongs = {
    {
        'song1.wav', -- name
        6500, -- duration in ms
    },
    {
        'song2.wav', -- name
        5500, -- duration in ms
    },
}
Config.DollySongVolume = 0.1
Config.DollyWatchingRandomTime = {10000, 11200, 11500, 12200, 12500, 12800, 13200, 13500, 13700, 13900} 
Config.KillingDelay = 500

-----------------------
-- Countdown Sprites --
-----------------------
Config.Sprite = {
    Dict = 'lumanstudio_runes',
    Textures = {
        ['1'] = 'rune1',
        ['2'] = 'rune2',
        ['3'] = 'rune3',
    },
}

-----------------
-- Player Tick --
-----------------
Config.EnableGodmode = true
Config.RestrictPlayerOnTick = function()
    local playerPed = PlayerPedId()

    -- Disable player attack
    DisableControlAction(0, `INPUT_MELEE_ATTACK`, true)
    DisableControlAction(0, `INPUT_MELEE_GRAPPLE`, true)
    DisableControlAction(0, `INPUT_MELEE_GRAPPLE_CHOKE`, true)
    DisableControlAction(0, `INPUT_INSPECT_ZOOM`, true)
    DisableControlAction(0, `INPUT_INTERACT_LOCKON`, true)
    DisableControlAction(0, `INPUT_CONTEXT_LT`, true)
    DisablePlayerFiring(playerPed, true)

    -- Force player always have 'unarmed' weapon selected
    local _, wep = GetCurrentPedWeapon(playerPed)
    if wep ~= `WEAPON_UNARMED` then
        SetCurrentPedWeapon(playerPed, `WEAPON_UNARMED`, true, 0, false, false)
    end

    -- Slowdown player sprinting/walking. Default is 3.0.
    SetPedMaxMoveBlendRatio(playerPed, 1.70)

    -- Disable jump
    -- DisableControlAction(0, `INPUT_JUMP`, true)
end
Location Options
---------------
-- Game area --
---------------
Config.GameZoneCoords = {
    vector3(-1536.03955078125, -3845.744384765625, 43.82061767578125),
    vector3(-1579.1678466796875, -3846.257080078125, 44.05285263061523),
    vector3(-1578.8870849609375, -3766.1953125, 42.2557258605957),
    vector3(-1536.333984375, -3765.258544921875, 43.67496109008789),
}
-----------------
-- Finish area --
-----------------
Config.FinishZoneCoords = {
    vector3(-1578.8870849609375, -3766.1953125, 42.2557258605957),
    vector3(-1536.333984375, -3765.258544921875, 43.67496109008789),
    vector3(-1538.0018310546875, -3776.54248046875, 42.8798828125),
    vector3(-1577.7518310546875, -3777.478515625, 42.31192779541015),
}

----------------
-- Guards NPC --
----------------
Config.GuardPeds = {
    {
        hash = `re_rally_males_01`, 
        coords = vector3(-1553.6317138671875, -3773.62158203125, 36.07645797729492), 
        rot = vector3(0, 0, 180.0),
        weapon = `WEAPON_MELEE_TORCH`,
        attachPoint = 0, -- 0, 1, nil
    },
}

----------------------
-- Participants NPC --
----------------------
Config.SimulatedPlayers = {
    {
        hash = `u_m_m_chelonianjumper_01`, 
        coords = vector3(-1540.624755859375, -3838.3720703125, 38.7372932434082), 
        rot = vector3(0.0, 0.0, 0.0),
        outfit = 1,
    },
}

-------------------
-- Props Mapping --
-------------------
Config.Props = {
    {
        hash = `s_crossburning01x`,
        coords = vector3(-1557.6317138671875, -3773.62158203125, 38.6720962524414),
        rot = vector3(0.0, 0.0, 0.0),
    },
    {
        hash = `p_watertower_sm_03_base`,
        coords = vector3(-1557.6317138671875, -3773.62158203125, 37.37670516967773),
        rot = vector3(0.0, 0.0, 0.0),
    },
}

---------------------
-- Gun Shot Coords --
---------------------
Config.WeaponHash = GetHashKey('weapon_rifle_springfield')
Config.PedBone = 21030 -- Headshot
Config.GunCoords = { 
    -- Right wall
    vector3(-1537.86083984375, -3840.937255859375, 45.0),
    vector3(-1537.8531494140625, -3831.76904296875, 45.0),
    vector3(-1538.060791015625, -3821.236328125, 45.0),
    vector3(-1538.0999755859375, -3810.775634765625, 45.0),
    vector3(-1537.8699951171875, -3800.46240234375, 45.06),
    vector3(-1537.9832763671875, -3790.0654296875, 45.0),
    vector3(-1538.25390625, -3779.530029296875, 45.0),
    -- Left wall
    vector3(-1577.222900390625, -3841.163330078125, 45.0),
    vector3(-1577.3189697265625, -3831.60498046875, 45.0),
    vector3(-1577.3582763671875, -3821.925537109375, 45.0),
    vector3(-1577.4732666015625, -3811.227294921875, 45.0),
    vector3(-1577.6800537109375, -3801.0263671875, 45.0),
    vector3(-1577.552978515625, -3790.426513671875, 45.0),
    vector3(-1577.1207275390625, -3779.94775390625, 45.0),
}

PreviousInstallation

Last updated 2 months ago