Whiteboard type & data

Usage & In-game editor

File: rcore_whiteboard/config.lua

Predefined models

These models are predefined in config so you can use them without any more configuration

  • ch_prop_whiteboard_03

  • rcore_prop_whiteboard_small

  • rcore_prop_whiteboard_medium

  • rcore_prop_whiteboard_large

If you want to add new model please contact us in ticket we will help you with it or use rcore_television editor and add new model into Config.ModelSettings

Static URL (load content from URL)

If you will add url parameter to board data it will load content from url and it will be static. This board will not have editor functions.

{
    id = 'RCORE_STATIC',
    pos = vector3(448.6489, -982.556, 25.69997),
    rotation = vector3(0.0, 0.0, 0.0),
    model = 'rcore_prop_whiteboard_small',
    url = 'https://rcore.cz/', --Use static url this will turn off editor functions
}

Job & grade restriction

You can add as many jobs as you can also you can remove or leave empty grades parameter if you want to allow all grades to edit this whiteboard.

{
    id = 'POLICE_MAIN',
    pos = vector3(450.804382, -984.659363, 25.690796),
    rotation = vector3(0.0, 0.0, 0.0),
    model = 'ch_prop_whiteboard_03',
    jobs = { --you can specify jobs that can edit this whiteboard
        'police',
    },
    grades = { --you can specify grades that can edit this whiteboard
        'boss',
    }
}

Multiple boards with same content

If you want to use multiple boards with same content you can use same id for them. This will share content and editor functions between them. If you edit one of them content will be updated on all of them.

{
    id = 'POLICE_LARGE',
    pos = vector3(425.88, -1027.67, 29.06),
    rotation = vector3(0.0, 0.0, 0.0),
    model = 'rcore_prop_whiteboard_large',
},
{
    id = 'POLICE_LARGE',
    pos = vec3(442.829102, -988.352356, 31.041954),
    rotation = vec3(0.000000, 0.000000, -89.998894),
    model = 'rcore_prop_whiteboard_large',
},

Read only boards

If you want to use multiple boards with same content and you only want to allow edit one of them you can use readOnly option. This option will turn off editor functions.

{
    id = 'POLICE_SMALL',
    pos = vector3(430.24, -1027.08, 28.94),
    rotation = vector3(0.0, 0.0, 0.0),
    model = 'rcore_prop_whiteboard_small',
    readOnly = true, --this whiteboard can't be edited
}

Last updated