Learn here how to create and use plugins.
Moderator: Plugin Moderators
-
Lobby
- Developer
- Reactions:
- Posts: 3377
- Joined: Sun Oct 26, 2008 12:34
- Plugins: Show
- Version: Beta
- Phone model: S7 edge
#21
Post
by Lobby » Wed Dec 13, 2017 12:40
Version 390 will allow you to reference to your own flags by name. To allocate a flag that's called "lobby_newflag you may just write
Code: Select all
"allocate flag":["lobby_newflag"] // "allocate flag":"lobby_newflag would work, too
To use it, write
You should add the definition above to every plugin which uses it (redefinition is therefore explicitly allowed). Just ensure that your flag name is some kind of unique.
⚠There's a limit of 20 custom flags in total.
...Have a nice stay
-
Lobby
- Developer
- Reactions:
- Posts: 3377
- Joined: Sun Oct 26, 2008 12:34
- Plugins: Show
- Version: Beta
- Phone model: S7 edge
#22
Post
by Lobby » Wed Dec 13, 2017 12:48
It's more than you had with user0 etc.

You shouldn't use them anymore.
...Have a nice stay
-
Josh
- Graphic designer
- Reactions:
- Posts: 2212
- Joined: Sat Mar 11, 2017 19:20
- Location: The Netherlands
- Plugins: Show
- Version: Beta
- Phone model: Iphone 7
Platform
Plugin Creator
#23
Post
by Josh » Wed Dec 13, 2017 17:50
But how can you add special things to the flag?
-
Lobby
- Developer
- Reactions:
- Posts: 3377
- Joined: Sun Oct 26, 2008 12:34
- Plugins: Show
- Version: Beta
- Phone model: S7 edge
#24
Post
by Lobby » Wed Dec 13, 2017 18:07
What do you mean by special things?
...Have a nice stay
-
Josh
- Graphic designer
- Reactions:
- Posts: 2212
- Joined: Sat Mar 11, 2017 19:20
- Location: The Netherlands
- Plugins: Show
- Version: Beta
- Phone model: Iphone 7
Platform
Plugin Creator
#25
Post
by Josh » Wed Dec 13, 2017 19:04
Things like influences and fun
-
Lobby
- Developer
- Reactions:
- Posts: 3377
- Joined: Sun Oct 26, 2008 12:34
- Plugins: Show
- Version: Beta
- Phone model: S7 edge
#26
Post
by Lobby » Wed Dec 13, 2017 19:12
Interesting idea

...Have a nice stay
-
22Alpha
- Inhabitant of a Conurbation
- Reactions:
- Posts: 445
- Joined: Sat Sep 23, 2017 14:29
Platform
#27
Post
by 22Alpha » Thu Dec 14, 2017 3:08
Yup, I was waiting for it as well haha
-
Krepel
- Villager
- Reactions:
- Posts: 9
- Joined: Thu May 24, 2018 22:12
- Location: Cracow, Lesser Poland, Poland
- Plugins: Show
- Phone model: LG G3
#28
Post
by Krepel » Sun Jun 03, 2018 13:54
So wait, if I'd make a tram plugin, which flags should I use to only allow trams on the rails?
i don't really understand the flags thing
Marsz Polonia, marsz!
-
NEPman
- Small-town resident
- Reactions:
- Posts: 36
- Joined: Tue Apr 24, 2018 13:15
- Location: <..>
- Plugins: Show
- Phone model: Meizu M5S
Platform
#29
Post
by NEPman » Fri Jul 27, 2018 15:29
How to prohibit the passage of fire trucks, ambulances and police cars on my way?
-
yusuf8a684
- Inhabitant of a Continent
- Reactions:
- Posts: 1114
- Joined: Sun Dec 10, 2017 22:09
- Location: Turkiye
- Plugins: Show
- Phone model: Discovery One
Plugin Creator
Platform
#30
Post
by yusuf8a684 » Fri Jul 27, 2018 16:09
NEPman wrote: ↑Fri Jul 27, 2018 15:40
@Lobby[Posts][PM], how to prohibit the passage of fire trucks, ambulances and police cars on my road?
We can't i think
-
Lobby
- Developer
- Reactions:
- Posts: 3377
- Joined: Sun Oct 26, 2008 12:34
- Plugins: Show
- Version: Beta
- Phone model: S7 edge
#31
Post
by Lobby » Fri Jul 27, 2018 23:45
Exactly, fire trucks etc. are designed to be able to drive on pkw, lkw, bus, tractor, military, pedestrian, tram or airport roads. You'd have to define a road that has none of these flags set in order to hinder fire trucks etc. from using it.
...Have a nice stay
-
Lobby
- Developer
- Reactions:
- Posts: 3377
- Joined: Sun Oct 26, 2008 12:34
- Plugins: Show
- Version: Beta
- Phone model: S7 edge
#32
Post
by Lobby » Wed Jun 12, 2019 15:45
Added a listing to all flags included in the game to the first post; Please favor them over own ones if reasonable to share behavior between different plugins.
The trains in the game use
...Have a nice stay
-
KINGTUT10101
- 1,000,000 inhabitants
- Reactions:
- Posts: 1944
- Joined: Thu Jul 07, 2016 22:50
- Location: 'Merica
- Plugins: Show
- Version: Beta
- Phone model: Moto x4
#33
Post
by KINGTUT10101 » Mon Oct 28, 2019 0:15
Is there a flag for emergency vehicles?
-
Lobby
- Developer
- Reactions:
- Posts: 3377
- Joined: Sun Oct 26, 2008 12:34
- Plugins: Show
- Version: Beta
- Phone model: S7 edge
#34
Post
by Lobby » Mon Oct 28, 2019 15:41
Not yet, might be added in the future

...Have a nice stay
Who is online
Users browsing this forum: No registered users and 1 guest