[PAID] vsSitchair

A script by VibeScripts

No reviews yet.
[PAID] vsSitchair main image

Price

Unknown

Full Description

[PAID] vsSitchair

Description

Use every chair on your FiveM server!

Our latest script vsSitchair greatly improves the roleplay quality on your server.

We at VibeScripts already have this script running on our own server.

You can use any chair and add new chairs in the config very easily.

On the chair you can choose between different seat animations and also add new ones.

The rotate-system allows you to position your chair perfect for any roleplay situation.

Upgrade the player experience on your roleplay server for only 12.99€.

Showcase

Link to the Showcase Video

Config

Config = {}

--TEXT 
Config.HelpText         = 'Current Animation: ~b~%s~s~\n~INPUT_CELLPHONE_LEFT~ ~INPUT_CELLPHONE_RIGHT~ Switch\n~INPUT_MOVE_LEFT_ONLY~ ~INPUT_MOVE_RIGHT_ONLY~ Turn\n~INPUT_FRONTEND_RRIGHT~ Stand Up'
Config.SitDown          = 'Press ~INPUT_VEH_HORN~ to sit down'
Config.AlreadySitting   = 'You are already sitting!'
Config.Occupied         = 'The chair is occupied!'

--NOTIFICATION
Config.Notification = function (msg, type)      --type: success or error
    ESX.ShowNotification(msg)
end

Config.Mode             = 'standalone'          --Set the mode: qtarget = using qtarget, standalone = works on its own
Config.OldVersion       = true                  --Select your version (true = old version)

Config.EnableIdgun      = false                 --Enable or disable the idgun, modified version of https://github.com/Puntherline/pun_idgun

Config.HelpTexts        = true                  --Set if HelpTexts should be displayed

Config.qtargetMessage   = 'Sit Down'
Config.qtargetIcon      = 'fa-solid fa-chair'

Config.Key              = 38                    --The Key thats pressed when in standalone

Config.Debug            = false                 --Enable or disable debug mode

Config.Distance         = 2.5                   --The distance you can interact with a chair. Both qtarget and standalone.

Config.ModelDir = {             --Register every object you want to be able to interact with, available objects at this moment: chairs
    -- chairs
    [854385596] = 'chair',
    [604553643] = 'chair',
    [-1118419705] = 'chair',
    [900821510] = 'chair',
    [181607490] = 'chair',
    [-1931340691] = 'chair',
    [558578166] = 'chair',
    [-1869605644] = 'chair',
    [525667351] = 'chair',
    [-2105381678] = 'chair',
    [2064599526] = 'chair',
    [1028260687] = 'chair',
    [725259233] = 'chair',
    [1545434534] = 'chair',
    [1056357185] = 'chair',
    [764848282] = 'chair',
    [1691387372] = 'chair',
    [1544350879] = 'chair',
    [-1941377959] = 'chair',
    [1064877149] = 'chair',
    [1612971419] = 'chair',
    [734263480] = 'chair',
    [826023884] = 'chair',
    [536071214] = 'chair',
    [-881696544] = 'chair',
    [1480618483] = 'chair',
    [1268458364] = 'chair',
    [-501934650] = 'chair',
    [-109356459] = 'chair',
    [1037469683] = 'chair',
    [96868307] = 'chair',
    [867556671] = 'chair',
    [-1633198649] = 'chair',
    [-1108904010] = 'chair',
    [291348133] = 'chair',
    [1071807406] = 'chair',
    [449297510] = 'chair',
    [-1198343923] = 'chair',
    [-2065455377] = 'chair',
    [-1173315865] = 'chair',
    [-721037220] = 'chair',
    [1196890646] = 'chair',
    [-784954167] = 'chair',
    [451260528] = 'chair',
    [-171943901] = 'chair',
    [1339364336] = 'chair',
    [-1278649385] = 'chair',

    --benches
    [-1461986002] = 'bench',
    [1805980844] = 'bench',

    --beds
    [314496444] = 'bed',
    [1937985747] = 'bed',
    [-1211387925] = 'bed',
    [-1284191201] = 'bed',
    [-980185685] = 'bed',

    --couches
    [544186037] = 'couch',
    [773405192] = 'couch',
    [-1199485389] = 'couch',
    [-2021659595] = 'couch',
    [1894671041] = 'couch',
}

Config.AnimDir = {                                                  --Animation dictionary, you register your own for every type and make exceptions regarding the offset needed
    ['chair'] = {
        {
            title = "Sit Chair 2",
            dict = "timetable@ron@ig_5_p3",
            anim = "ig_5_p3_base",
            offset = {
                ['default'] = {x = 0.0, y = -0.6, z = 0.0, rotz = 0.0},
                [-829283643] = {x = 0.0, y = -0.8, z = 0.0, rotz = 0.0},
                [1546354612] = {x = 0.0, y = -0.87, z = 0.0, rotz = 0.0},
                [-2065455377] = {x = 0.0, y = -0.87, z = 0.0, rotz = 0.0},
                [1545434534] = {x = 0.0, y = -0.7, z = 0.0, rotz = 0.0},
            }
        }, {
            title = "Sit Chair 3",
            dict = "timetable@reunited@ig_10",
            anim = "base_amanda",
            offset = {
                ['default'] = {x = -0.2, y = -0.7, z = 0.0, rotz = 0.0},
                [-2065455377] = {x = -0.2, y = -0.87, z = 0.0, rotz = 0.0},
            }
        }, {
            title = "Sit Chair 4",
            dict = "timetable@ron@ig_3_couch",
            anim = "base",
            offset = {
                ['default'] = {x = 0.0, y = -0.4, z = 0.0, rotz = 0.0},
                [1546354612] = {x = 0.0, y = -0.6, z = 0.0, rotz = 0.0},
                [-2065455377] = {x = 0.0, y = -0.6, z = 0.0, rotz = 0.0},
                [1545434534] = {x = 0.0, y = -0.6, z = 0.0, rotz = 0.0},
            }
        }, {
            title = "Sit Chair 5",
            dict = "timetable@jimmy@mics3_ig_15@",
            anim = "mics3_15_base_tracy",
            offset = {
                ['default'] = {x = 0.0, y = -0.8, z = 0.0, rotz = 0.0},
                [-2065455377] = {x = 0.0, y = -0.9, z = 0.0, rotz = 0.0},
            }
        }, {
            title = "Sit Chair 6",
            dict = "timetable@maid@couch@",
            anim = "base",
            offset = {
                ['default'] = {x = -0.1, y = -0.8, z = 0.0, rotz = 0.0},
                [-2065455377] = {x = -0.1, y = -0.9, z = 0.0, rotz = 0.0},
            }
        }, {
            title = "Sit Chair Side",
            dict = "timetable@ron@ron_ig_2_alt1",
            anim = "ig_2_alt1_base",
            offset = { 
                ['default'] = {x = 0.0, y = -0.5, z = 0.0, rotz = 0.0},
                [1546354612] = {x = 0.0, y = -0.6, z = 0.0, rotz = 0.0},
                [-2065455377] = {x = 0.0, y = -0.65, z = 0.0, rotz = 0.0},
            }
        }
    },
    ['couch'] = {
        {
            title = "Sit 2",
            dict = "timetable@ron@ig_5_p3",
            anim = "ig_5_p3_base",
            offset = {
                ['default'] = {x = 0.0, y = -0.6, z = 0.0, rotz = 0.0},
            }
        }, {
            title = "Sit 3",
            dict = "timetable@reunited@ig_10",
            anim = "base_amanda",
            offset = {
                ['default'] = {x = -0.2, y = -0.7, z = 0.0, rotz = 0.0},
            }
        }, {
            title = "Sit 4",
            dict = "timetable@ron@ig_3_couch",
            anim = "base",
            offset = {
                ['default'] = {x = 0.0, y = -0.4, z = 0.0, rotz = 0.0},
            }
        }, {
            title = "Sit 5",
            dict = "timetable@jimmy@mics3_ig_15@",
            anim = "mics3_15_base_tracy",
            offset = {
                ['default'] = {x = 0.0, y = -0.8, z = 0.0, rotz = 0.0},
            }
        }, {
            title = "Sit 6",
            dict = "timetable@maid@couch@",
            anim = "base",
            offset = {
                ['default'] = {x = -0.1, y = -0.8, z = 0.0, rotz = 0.0},
            }
        },
    },
    ['bench'] = {
        {
            title = "Sit 2",
            dict = "timetable@ron@ig_5_p3",
            anim = "ig_5_p3_base",
            offset = {
                ['default'] = {x = 0.0, y = -0.6, z = 0.0, rotz = 0.0},
            }
        }, {
            title = "Sit 3",
            dict = "timetable@reunited@ig_10",
            anim = "base_amanda",
            offset = {
                ['default'] = {x = -0.2, y = -0.7, z = 0.0, rotz = 0.0},
            }
        }, {
            title = "Sit 4",
            dict = "timetable@ron@ig_3_couch",
            anim = "base",
            offset = {
                ['default'] = {x = 0.0, y = -0.4, z = 0.0, rotz = 0.0},
            }
        }, {
            title = "Sit 5",
            dict = "timetable@jimmy@mics3_ig_15@",
            anim = "mics3_15_base_tracy",
            offset = {
                ['default'] = {x = 0.0, y = -0.8, z = 0.0, rotz = 0.0},
            }
        }, {
            title = "Sit 6",
            dict = "timetable@maid@couch@",
            anim = "base",
            offset = {
                ['default'] = {x = -0.1, y = -0.8, z = 0.0, rotz = 0.0},
            }
        },
    },
    ['bed'] = {
        {
            title = "Sleeping",
            dict = "timetable@tracy@sleep@",
            anim = "idle_c",
            offset = {
                ['default'] = {x = 0.0, y = 0.0, z = 0.0, rotz = 0.0},
            }
        },
        {
            title = "Sleeping 2",
            dict = "switch@franklin@bed",
            anim = "sleep_loop",
            offset = {
                ['default'] = {x = 0.0, y = 0.0, z = 0.0, rotz = 0.0},
            }
        },

    },
}

Optimization

  • IDLE: 0.01ms

  • RUNNING: 0.03ms

Further Information

TEBEX: vsSitchair

Code is accessible No
Subscription-based No
Lines (approximately) 500
Requirements ESX
Support Yes