(Question) Traffic Light
#1

I would like to know how to make a realistic traffic light.
Example: If you pass with red light you will get a ticket.
Reply
#2

The traffic lights aren't synced server wide, they're client side so it's not possible.
Reply
#3

Quote:
Originally Posted by Divergent
Посмотреть сообщение
The traffic lights aren't synced server wide, they're client side so it's not possible.
They are synced serverside, they changed it a few updates ago I think...Either way, I tried it with 5 people around the world and they are synced.

Though, no, this isn't really possible to autogive a ticket. You could have cops see people doing it, though.
Reply
#4

Quote:
Originally Posted by TakeiT
Посмотреть сообщение
They are synced serverside, they changed it a few updates ago I think...Either way, I tried it with 5 people around the world and they are synced.

Though, no, this isn't really possible to autogive a ticket. You could have cops see people doing it, though.
Good to know, rep+ bro.
Reply
#5

I've seen years ago a script with Traffic Light with timers but i'm not sure if it is possible to make it too.!
Reply
#6

https://sampforum.blast.hk/showthread.php?tid=509952

Check this out.

It is surely possible mate.
Reply
#7

Quote:
Originally Posted by Flori
Посмотреть сообщение
https://sampforum.blast.hk/showthread.php?tid=509952

Check this out.

It is surely possible mate.

Yeah i was talking about this but the point is timers + include doesn't work.
Reply
#8

IIRC the sync is only done when they connect, and tabbing throws out the sync of the lights...

At least that's what I remember, so it's not really synced, it's only if you don't tab at all.
Reply
#9

Traffic lights are synced but not manageable. In other words they are synced but the server has no control over them. You can make a server-sided traffic light how-ever with lighting objects(maybe using neons?).
Reply
#10

Quote:
Originally Posted by Abagail
Посмотреть сообщение
Traffic lights are synced but not manageable. In other words they are synced but the server has no control over them. You can make a server-sided traffic light how-ever with lighting objects(maybe using neons?).
I'm gonna try this thanks. Thanks all for your help.
Reply
#11

To start off, If you're creating a 'Roleplay' script, then why Make it a script automated feature.
Reply
#12

Hey!

I think you can make traffic lights textdraw for every player who connected to server. When if player are near to intersection when shows traffic lights textdraw. If its red, when player get ticker otherwise he can do with green.

Second idea is make CCTV system for each intersection to where cops can check who cross with red when traffic cops get alert. You can make it to Dillimore or small place and check how its can be possible.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)