README
Visit our Discord / Homepage / Store !
Table of contents
Requirements / Dependencies
The following resources are required for nss_pinboard
to work:
Changelog
See CHANGELOG.md for more information.
Setup
Ensure that the
nss_pinboard
folder is in yourresources
folder.Rename config.demo.lua to
config.lua
and fill in the values.If you want to use prepared bulletin boards see optional ymap now.
Execute
db.sql
on your database.Add
ensure nss_pinboard
to yourserver.cfg
.Restart your server.
Optional: ymap
You can use this bulletin_boards.ymap to place bulletin boards to prepared locations in your map. The bulletin_boards_config.lua file contains the coordinates for the bulletin boards for the script.
Copy and replace
Config.Posters
from bulletin_boards_config.lua into yourconfig.lua
Create a new resource folder.
Create a
stream
folder inside the new resource folder.Copy the bulletin_boards.ymap file into the
stream
folder.Add
fxmanifest.lua
with the following content:Add
ensure <new_resource_name>
to yourserver.cfg
.Restart your server.
EVENTS
Client events
nss_pinboard:open
nss_pinboard:open
Opens the bulletin board for the given city.
Ensure to not open the bulletin board multiple times.
city
is the name (id) of the bulletin board that you have used in your config.
Client usage
Server usage
Client command usage
Simple example to use events as commands...
nss_pinboard:close
nss_pinboard:close
Closes the bulletin current open bulletin board.
Client usage
Server usage
FAQ
Why sometimes images from discord are not available?
Discord has introduced an expiry restriction for images.
See the following links for more information:
As long as there is no simple solution for this, we recommend that your players refrain from using Discord links.
You can use Config.ImageServerBlacklist
to block specific domains like discord.com
or cdn.discordapp.com
to prevent the use of Discord links.
Last updated
Was this helpful?