Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cmd::group::Create(this->race_company, VEH_TRAIN).queue_with_callback([this, train_id=v->index, name] (bool res) {
- if (!res) return;
- cmd::group::SetLiveryColor(this->race_company, _new_group_id, (Colours)InteractiveRandomRange(COLOUR_END)).queue();
- cmd::group::SetLiveryColor(this->race_company, _new_group_id, (Colours)InteractiveRandomRange(COLOUR_END), true).queue();
- cmd::group::Rename(this->race_company, _new_group_id, name).queue();
- cmd::group::AddVehicle(this->race_company, _new_group_id, train_id).queue();
- });
- cmd::vehicle::Rename(this->race_company, v->index, name).queue();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement