Finely chop the onion, carrot, and green onion.
Add cooking oil to a pan and stir-fry the green onion until fragrant.
Add the onion and carrot and stir-fry together.
Add the rice and stir-fry, mixing evenly.
Season with soy sauce, salt, and pepper.
Once all ingredients are well mixed, turn off the heat and it's ready.