Proper flags for cars

Learn here how to create and use plugins.

Moderator: Plugin Moderators

User avatar
Lobby
Developer
Reactions:
Posts: 3343
Joined: Sun Oct 26, 2008 12:34
Plugins: Show
Version: Beta
Phone model: S7 edge

Platform

Proper flags for cars

#1

Post by Lobby » Wed Jan 16, 2019 11:14

Hey, I want to inform you that since the flag interpretation of cars is the same as for roads the meaning of "flag normal":true (which is set by default) also enables the same flags. Namely flag normal will act as if you set

Code: Select all

"flag pkw":true,
"flag lkw":true,
"flag tractor":true,
"flag bus":true
The reason for that behavior is convenience when it comes to road definitions. However, for cars you usually don't want flags to be set that don't actually match your car's type (e.g. bus). Otherwise it could for example use roads that it's not supposed to.

To overcome that use

Code: Select all

"flag normal":false
and enable only the appropriate flags for your car afterwards :teach
...Have a nice stay

User avatar
Imran M
Inhabitant of a Conurbation
Reactions:
Posts: 491
Joined: Wed Oct 24, 2018 13:41
Plugins: Show
Phone model: Huawei p8 lite

Platform

Plugin Creator

Re: Proper flags for cars

#2

Post by Imran M » Fri Jan 18, 2019 17:52

Finally! A post that makes flags easier to understand! :D
https://m.youtube.com/watch?v=AqpYHdv3S00 gives 404 error.

User avatar
yusuf8a684
Inhabitant of a Continent
Reactions:
Posts: 1109
Joined: Sun Dec 10, 2017 22:09
Location: Turkiye
Plugins: Show
Phone model: Discovery One

Plugin Creator

Platform

Re: Proper flags for cars

#3

Post by yusuf8a684 » Fri Jan 18, 2019 20:24

Lobby but how could we remove emergency vehicles and taxis from roads?
TheoTown Multiplayer Region
25x3Z7Z
We are playing on a region which other players in it as well. Our goal is making real world region...

User avatar
JustAnyone
Junior Developer
Reactions:
Posts: 2611
Joined: Sun Jul 23, 2017 12:45
Location: No idea either
Plugins: Show

Plugin Creator

Platform

Re: Proper flags for cars

#4

Post by JustAnyone » Fri Jan 18, 2019 20:54

Try

Code: Select all

"flag military":false
for removal of service cars, though it's not advised.

User avatar
yusuf8a684
Inhabitant of a Continent
Reactions:
Posts: 1109
Joined: Sun Dec 10, 2017 22:09
Location: Turkiye
Plugins: Show
Phone model: Discovery One

Plugin Creator

Platform

Re: Proper flags for cars

#5

Post by yusuf8a684 » Fri Jan 18, 2019 21:08

JustAnyone wrote:
Fri Jan 18, 2019 20:54
Try

Code: Select all

"flag military":false
for removal of service cars, though it's not advised.
Thanks but I hope it will deny taxis on it too
TheoTown Multiplayer Region
25x3Z7Z
We are playing on a region which other players in it as well. Our goal is making real world region...

User avatar
yusuf8a684
Inhabitant of a Continent
Reactions:
Posts: 1109
Joined: Sun Dec 10, 2017 22:09
Location: Turkiye
Plugins: Show
Phone model: Discovery One

Plugin Creator

Platform

Re: Proper flags for cars

#6

Post by yusuf8a684 » Sat Jan 19, 2019 15:00

What is the flag tag for fire engines?
TheoTown Multiplayer Region
25x3Z7Z
We are playing on a region which other players in it as well. Our goal is making real world region...

User avatar
yusuf8a684
Inhabitant of a Continent
Reactions:
Posts: 1109
Joined: Sun Dec 10, 2017 22:09
Location: Turkiye
Plugins: Show
Phone model: Discovery One

Plugin Creator

Platform

Re: Proper flags for cars

#7

Post by yusuf8a684 » Sat Jan 19, 2019 15:06

"flagairport":false,"flagambulance":false,"flagbus":false,"flaglkw":false,"flagmedic":false,"flagmilitary":false,"flagnormal":false,"flagpedestrian":false,"flagpkw":false,"flagpolice":false,"flagtaxi":false,"flagtractor":false,"flagtram":true,"flagtruck":false,"
That is me trying to ban all flags except tram lol :bb
TheoTown Multiplayer Region
25x3Z7Z
We are playing on a region which other players in it as well. Our goal is making real world region...

User avatar
JustAnyone
Junior Developer
Reactions:
Posts: 2611
Joined: Sun Jul 23, 2017 12:45
Location: No idea either
Plugins: Show

Plugin Creator

Platform

Re: Proper flags for cars

#8

Post by JustAnyone » Sat Jan 19, 2019 18:40

Don't forget the space!

User avatar
yusuf8a684
Inhabitant of a Continent
Reactions:
Posts: 1109
Joined: Sun Dec 10, 2017 22:09
Location: Turkiye
Plugins: Show
Phone model: Discovery One

Plugin Creator

Platform

Re: Proper flags for cars

#9

Post by yusuf8a684 » Sat Jan 19, 2019 19:24

JustAnyone wrote:
Sat Jan 19, 2019 18:40
Don't forget the space!
I added spaces lol but still ambulances, taxis, fire engines, polices and semi trucks can go over it :(
TheoTown Multiplayer Region
25x3Z7Z
We are playing on a region which other players in it as well. Our goal is making real world region...

Post Reply Previous topicNext topic

Return to “Tutorials and Documentation”

Who is online

Users browsing this forum: No registered users and 7 guests