Car, Road, and RoadDeco lua libraries
Posted: 21 Mar 2021, 18:31
Code: Select all Reset
Car.getXYL() Car.despawn() Car.getSpeed() Car.getRoadDraft() --where this car is currently driving on Car.setSpeed(speed) Car.isXXX() --e.g. XXX is either fire truck or ambulance or police car or train or etc Car.getWidth() Car.getHeight() Car.getStorage() Car.getFrame() Road.getCarCount() Road.getCarChargeableCount() Road.getDeco() --Returns the draft of the road decoration on this road Road.getXYL() Road.getOccupation () Road.setOccupation (draft) Road.getStorage() Road.getFrame() Road.getTraffic() Road.getCarDraft() --returns a table of car drafts that are on this road Road.setFrame(frame) RoadDeco.getCarCount() RoadDeco.getCarChargeableCar() RoadDeco.getStorage() RoadDeco.getXYL() RoadDeco.getCarDraft() --returns a table of car drafts that are on this road decoration RoadDeco.getOccupation() RoadDeco.setOccupation (draft) RoadDeco.getRoadDraft()
Lua editor