No need for long explanations, gun glitch method: Enter the game → find those time-limited guns (the ones with two black dots in the middle of a circle) → after picking up the gun, go back to the phone's main menu (without ending the game) → end this game from the phone's main menu → enter the game again → continuous gameplay → click on weapons and you'll see (the time-limited gun you just picked up becomes unlimited, meaning infinite ammo, and other weapons can be glitched in the same way).
Virtual keyboard (used for entering cheats): Go to 9Game to download [Virtual Game Keyboard] and [Smart Keyboard Pro] (there's a 9Game website in UC browser) → First enter Grand Theft Auto then return to the phone's main menu (without ending the game, make sure the character can move before going back to the main menu) → enter [Virtual Game Keyboard] → click Step 1 (a window for language and input devices will pop up) → check the input method (Smart Keyboard Pro) → go back to [Virtual Game Keyboard] and click Step 2 → choose [Smart Keyboard Pro] → click Exit → click Grand Theft Auto and the virtual keyboard will appear → after entering cheats, press the phone button to exit the game, and the keyboard will disappear (Note: if you have glitched a gun, do not enter weapon cheats or it may crash the game).