Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Code to Create a keyboard onscreen for you to type in you new license plate
- //Hope This Helps! (Not sure where i found this but credit to whoever made this code)
- Ped playerPed = PLAYER::PLAYER_PED_ID();
- // No point in displaying the keyboard if they aren't in a vehicle
- if (!PED::IS_PED_IN_ANY_VEHICLE(playerPed, false)) return;
- // Invoke keyboard
- GAMEPLAY::DISPLAY_ONSCREEN_KEYBOARD(true, "", "", VEHICLE::GET_VEHICLE_NUMBER_PLATE_TEXT(PED::GET_VEHICLE_PED_IS_IN(playerPed, false)), "", "", "", 9);
- // Wait for the user to edit
- while (GAMEPLAY::UPDATE_ONSCREEN_KEYBOARD() == 0) WAIT(0);
- // Make sure they didn't exit without confirming their change, and that they're still in a vehicle
- if (!GAMEPLAY::GET_ONSCREEN_KEYBOARD_RESULT() || !PED::IS_PED_IN_ANY_VEHICLE(playerPed, false)) return;
- // Update the licenseplate
- VEHICLE::SET_VEHICLE_NUMBER_PLATE_TEXT(PED::GET_VEHICLE_PED_IS_IN(playerPed, false), GAMEPLAY::GET_ONSCREEN_KEYBOARD_RESULT());
Add Comment
Please, Sign In to add comment