IMG

 
IMG
IMG   IMG
  Welcome to GTAForums! Be sure to check out the Grand Theft Auto V Forum.

You are not registered! (If you are, click here to login) Registering is fast, free and easy and allows you to instantly reply to any topic on GTAForums.
Why wait? Click here to register your own unique username and become part of the ever-growing community!


( Log In | Register | Revalidate Validation E-mail )
Quick Log-In:
  IMG
       
>
Forum Rules GTA Modification Forums

Please post mod releases in the Mod Showroom

GTAGarage.com
free mod hosting from GTANet, simply login with your GTAForums account details

GTAModding.com
GTANet's modding wiki

GTA Modding Chatroom
provided by irc.gtanet.com (Don't have an IRC client? Click here)


  Reply to this topicStart new topicStart Poll

 How do you edit vehicle's license plates?

 Please help.
 
TaBz3  
Posted: Monday, Jul 30 2012, 20:43
Quote Post


Player Hater
Group Icon
Group: Members
Joined: May 9, 2012

XXXXX



Hey there, GTAForums.
I've been trying to look for a way to edit vehicle's license plates by going into Debug Mode (SP) and checking out self-vehicle to check out the String for text like 'JE9 892D' or whatever -but I can't seem to find it, and I was wishing that you people may help me find a new way or method into finding out how to edit license plates.
Thanks very much for reading and I hope you may be of help.
P.S. I've been searching the forums for roughly a good half an hour and I can't find any topics relating to this subject.
PM
  Top
 

 
fireguy109  
Posted: Monday, Jul 30 2012, 20:47
Quote Post


Chronic post editor.
Group Icon
Group: Leone Family Mafia
Joined: Aug 30, 2010

us.gif

XXXXX



QUOTE (spaceeinstein @ Saturday, Nov 22 2008, 19:31)
You can only change the license plate of a car before the car is created. After it is created the license plate can't be changed using coding.

confused.gif

http://www.gtaforums.com/index.php?showtopic=377390
Users WebsitePMPlayStation Network
  Top
 

 
Deji  
Posted: Monday, Jul 30 2012, 21:04
Quote Post


Coding like a Rockstar!
Group Icon
Group: Members
Joined: Dec 24, 2007

ja.gif

XXXXX



I actually found a way earlier this year (or possibly sometime last year), but I can't even remember how I came to discover the method confused.gif
Users WebsitePM
  Top
 

 
OrionSR  
Posted: Tuesday, Jul 31 2012, 00:24
Quote Post


Chain Game Development Team
Group Icon
Group: Members
Joined: May 23, 2007

Member Award




CODE
09E2: $PARKED_IMPEXPM_CARS[0] = parked_car_generator_w_numberplate #EUROS -1 -1 0 alarm 50 door_lock 0 0 10000 plate "IMPEXP__" at 0.0 0.0 0.0 angle 180.0


It is possible to alter the plates that will be associated with car generators added to the save using the opcode above. I can dig up the relevant addresses for you if you are interested. However, I suspect you are trying to alter the plates on vehicles that already exist, so I'll hold off unless the information is needed.
PM
  Top
 

 
Wesser  
Posted: Tuesday, Jul 31 2012, 10:49
Quote Post


The complexity simplifier, the efficiency optimizer
Group Icon
Group: Members
Joined: Aug 19, 2006

eu.gif

Member Award




Nearly 2 years ago, I found out an ugly way to do such thing:
CODE

{$CLEO}

0000: NOP

while true
 wait 0
 if
 00DF:  actor $PLAYER_ACTOR driving
 then
   if
   00E1:  player 0 pressed_key 4 // Secondary fire
   then
     03C0: 0@ = actor $PLAYER_ACTOR car
     0441: 1@ = car 0@ model
     0674: set_car_model 1@ numberplate "_PLATE_"
     0AB1: call_scm_func @refreshVehModel 1 vehicle 0@
   end
 end
end

:refreshVehModel
{
 Parameters:
   Passed:
     0@ - vehicle (handle)
   Result:
     none

 Example:
   0AB1: call_scm_func @refreshVehModel 1 vehicle 0@
}
0441: 1@ = car 0@ model
0A97: 0@ = car 0@ struct
0AA6: call_method 0x6D6410 struct 0@ num_params 0 pop 0 // CVehicle__DeleteRwObject
0AA6: call_method 0x6A6590 struct 0@ num_params 1 pop 0 sIndex 1@ // CAutomobile__SetModelIndex
0AB2: ret 0

Unfortunately, it clears any visible damage cause vehicle's parts get removed and recreated. Vehicle's variations may be affected too. I'm too lazy to fix the script right now. confused.gif
PMMSNPlayStation Network
  Top
 

 
TaBz3  
Posted: Tuesday, Jul 31 2012, 12:20
Quote Post


Player Hater
Group Icon
Group: Members
Joined: May 9, 2012

XXXXX



Thanks for all the help guys.
PM
  Top
 

 

0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)

0 Members:

Topic Options Reply to this topicStart new topicStart Poll
Search topic for posted by (exact match)



 
IMG IMG