Jump to content

SetVehicleOwnerName() not working properly


Darprix

Recommended Posts

Hey everyone,

I'm currently experiencing a problem.

 

I use SetVehicleOwnerName() on the suspect vehicle, but it doesn't seems to work. Computer+ and Police Smart Radio display another random name.

 

This is what my code is (I added a log to know if it's ran)

Functions.SetVehicleOwnerName(SuspectVehicle, CallerName);
Game.LogTrivial("VEHICLE OWNER IS " + Functions.GetVehicleOwnerName(SuspectVehicle));

 

And here is it's definition:

            CallerName = Functions.GetPersonaForPed(Caller).FullName;

 

The log returns the good name, which is pretty surprising.

 

The log is wrote about 5 secondes before I pullover the suspect.

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...