Cars
Re: 关于:汽车
I made a new police car and its matching generator. But it's got the wrong lights.
Code: Select all Reset
{ "id":"VCPD警车", "type":"car", "frames":[{"bmp":"VCPD警车行驶时.png","w":19,"h":20,"count":4}], "v2":true, "speed": 1.16, "flag normal":false, "flag pkw":true, "animation": [ { "id":"VCPD警灯", "pos":[13,-10, 6,-4, -2,-9, 7,-13], "important":true, "normalize pos": false }, { "id":"VCPD警灯", "pos":[15,-9, 8,-5, 0,-8, 9,-14], "important":true, "normalize pos": false }, { "id": "carlight_red", "pos": [0, 0, 0, 5, 10, 11, 0, 0], "frames": [1,2] }, { "id": "carlight_red", "pos": [0, 0, 4, 10 , 14, 9, 0, 0], "frames": [1,2] }, { "id": "carlight_yellow", "pos": [10, 10, 0, 0, 0, 0, 1, 10], "frames": [0,3] }, { "id": "carlight_yellow", "pos": [13, 9, 0, 0, 0, 0, 4, 11], "frames": [0,3] } ], "meta":{ "tags":{ "police":{} } } }, { "id":"VCPD警车生成器", "type":"police", "author":"黑色高级市长", "width":1, "height":1, "frames":[{"bmp":"一片空白.png"}], "price":0, "car spawner":[{"cars":["VCPD警车"],"radius":1000,"count":6}], "category":"警车生成器", "draw ground": true, "water":0, "power":0, "title":"VCPD警车生成器", "text":"生成VCPD警车", "needs road":false, "build time":0 }
JSON checker
Re: Cars
How to spawm a police car that can respond to the emergency?
I made a police car and a spawn.When I called the police, the police car wouldn't turn on the warning lights and didn't respond.
I made a police car and a spawn.When I called the police, the police car wouldn't turn on the warning lights and didn't respond.
Code: Select all Reset
[{ "id":"LAPD car", "type":"car", "frames":[{"bmp":"LAPD police car.png","w":18,"h":11,"count":4}], "v2":true, "speed": 1.16, "flag normal":false, "flag pkw":false, "flag military":true, "flag airport":true, "flag emergency": true, "chargeable": false, "animation": [ { "id":"$animationcaralertlights00", "pos":[15,-6, 9,-6, 9,-9, 15,-9], "important":true, "normalize pos": false }, { "id":"$animationcaralertlights00", "pos":[17,-5, 7,-5, 7,-10, 17,-10], "important":true, "normalize pos": false }, { "id": "carlight_red", "pos": [0, 0, 1, 7, 13, 9, 0, 0], "frames": [1,2] }, { "id": "carlight_red", "pos": [0, 0, 4, 9 , 16, 7, 0, 0], "frames": [1,2] }, { "id": "carlight_yellow", "pos": [13, 9, 0, 0, 0, 0, 1, 7], "frames": [0,3] }, { "id": "carlight_yellow", "pos": [16, 7, 0, 0, 0, 0, 4, 9], "frames": [0,3] } ], "meta":{ "tags":{ "police":{} } } } , { "id":"LAPD car spawn", "type":"police", "influence police":12, "author":"黑色高级市长", "width":1, "height":1, "frames":[{"bmp":"A1.png"}], "price":0, "car spawner":[{"cars":["LAPD car"],"radius":10,"count":20}], "category":"LAPD car", "draw ground": true, "water":0, "power":0, "title":"LAPD car spawn", "text":"Spawn some LAPD car", "needs road":false, "performance":true, "build time":0 }]
JSON checker
You do not have the required permissions to view the files attached to this post.
-
Alparingitlgnd5
- Townsman
- Reactions:
- Posts: 77
- Joined: 31 Jul 2020, 15:45
- Location: Las Pinas, Philippines
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
Re: Cars
hello guys I need a little help here, I think my code is currently right here:
[{
"id":"High_Ngyace",
"type:car",
"frames":[{"bmp":"Pre HIACE.png","w":76,"h":13,"count":4},{"bmp":"Pre Hiace Diagonal.png", "w":50, "h":16,"count":4}],
"frames per variant": 8,
"v2":true
}],
[{
"id": "ampanget_residential",
"frames": [{"bmp": "3x3.png"}],
"type": "residential",
"text": "cigarette ka na walang land",
"author":"Alparingitlgnd5",
"width": 3,
"height": 3,
"price":10,
"monthly price": 1,
"bulldoze price": 1,
"power": 1,
"water": 1,
"burnable": true,
"destroyable": true,
"needs road": true,
"pickable": true }]
It's about the diagonals, how can I implement it I am very confused also I forgot here's the attachment I captured
[{
"id":"High_Ngyace",
"type:car",
"frames":[{"bmp":"Pre HIACE.png","w":76,"h":13,"count":4},{"bmp":"Pre Hiace Diagonal.png", "w":50, "h":16,"count":4}],
"frames per variant": 8,
"v2":true
}],
[{
"id": "ampanget_residential",
"frames": [{"bmp": "3x3.png"}],
"type": "residential",
"text": "cigarette ka na walang land",
"author":"Alparingitlgnd5",
"width": 3,
"height": 3,
"price":10,
"monthly price": 1,
"bulldoze price": 1,
"power": 1,
"water": 1,
"burnable": true,
"destroyable": true,
"needs road": true,
"pickable": true }]
It's about the diagonals, how can I implement it I am very confused also I forgot here's the attachment I captured
You do not have the required permissions to view the files attached to this post.
MY SIGNATURE
-
CommanderABab
- AB
- Reactions:
- Posts: 11263
- Joined: 07 Jun 2016, 19:12
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
Re: Cars
.1burgernamn wrote: 03 Oct 2023, 07:21 if i wanted to set my car to go 1 kmph, what number would i set it to
my avatar:
-
burgernamn
- Inhabitant of a Megacity
- Reactions:
- Posts: 173
- Joined: 15 Apr 2022, 08:32
- Plugins: Showcase Store
-
Plugin Creator
Platform
Re: Cars
ah i seeCommanderABab wrote: 14 Oct 2023, 00:32.1burgernamn wrote: 03 Oct 2023, 07:21 if i wanted to set my car to go 1 kmph, what number would i set it to
and if i wanted to add another kmph i added another .1?
im more active on my discord
-
CommanderABab
- AB
- Reactions:
- Posts: 11263
- Joined: 07 Jun 2016, 19:12
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
Re: Cars
burgernamn wrote: 20 Oct 2023, 07:48ah i seeCommanderABab wrote: 14 Oct 2023, 00:32.1burgernamn wrote: 03 Oct 2023, 07:21 if i wanted to set my car to go 1 kmph, what number would i set it to
and if i wanted to add another kmph i added another .1?
my avatar:
-
Ostrovsk
- Townsman
- Reactions:
- Posts: 42
- Joined: 13 Oct 2023, 16:31
- Location: Rostov-on-Don
- Plugins: Showcase Store
- Version: Beta
Re: Cars
Good day everyone, is it possible to fix the problem when one bus constantly enters another? (An object within an object). Screenshot attached
You do not have the required permissions to view the files attached to this post.
-
CommanderABab
- AB
- Reactions:
- Posts: 11263
- Joined: 07 Jun 2016, 19:12
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
Re: Cars
If you have a plugin that adds buses, it might not be behaving well code-wise.Ostrovsk wrote: 12 Sep 2024, 09:30 Screenshot_2024-09-12-10-10-31-59_b9c7f85ab9c096b4378029bc61eaf2d6.jpgGood day everyone, is it possible to fix the problem when one bus constantly enters another? (An object within an object). Screenshot attached
-
Ostrovsk
- Townsman
- Reactions:
- Posts: 42
- Joined: 13 Oct 2023, 16:31
- Location: Rostov-on-Don
- Plugins: Showcase Store
- Version: Beta
Re: Cars
I kind of found the root of the problem, inserted the command "Length", I don't know if it's right, but it seems to have helpedCommanderABab wrote: 16 Sep 2024, 15:42If you have a plugin that adds buses, it might not be behaving well code-wise.Ostrovsk wrote: 12 Sep 2024, 09:30 Screenshot_2024-09-12-10-10-31-59_b9c7f85ab9c096b4378029bc61eaf2d6.jpgGood day everyone, is it possible to fix the problem when one bus constantly enters another? (An object within an object). Screenshot attached
Thank you for the answer)
-
Ostrovsk
- Townsman
- Reactions:
- Posts: 42
- Joined: 13 Oct 2023, 16:31
- Location: Rostov-on-Don
- Plugins: Showcase Store
- Version: Beta
Re: Cars
Good day, I would like to know if it is possible to put a flag on a road decoration so that certain vehicles move only where there is this road decoration. I want to make a semblance of a route for my buses. So that they move only where they need to, without driving around the city randomly

-
FVI
- Inhabitant of a Galaxy Cluster
- Reactions:
- Posts: 2441
- Joined: 22 Feb 2022, 16:00
- Location: The largest island in Europe
- Plugins: Showcase Store
- Version: Beta
-
Platform
Re: Cars
You should add on the cars' code the attribute "targets" and then the ID of the building/deco you want to attract cars to, just like you would do with an animationOstrovsk wrote: 27 Nov 2024, 22:43 Good day, I would like to know if it is possible to put a flag on a road decoration so that certain vehicles move only where there is this road decoration. I want to make a semblance of a route for my buses. So that they move only where they need to, without driving around the city randomly![]()
Re: Cars
I can’t find the train tutorial. Could someone show how json need to look like and the example png texture ?
