Im creating a Traffic Ticket SWEP. And i need to know how to get the vehicle owners name
[b][i]Thanks in advance[/i][/b]
Gamemode?
[editline]27th July 2013[/editline]
I assume it's DarkRP.
If you have the vehicle entity already you can get the current owner with
[lua]
Entity:CPPIGetOwner()
[/lua]
Where Entity is your vehicle entity.
If the vehicle is spawned from the F4 menu, you're going to have to use
[lua] vehicle:Getowning_ent() [/lua]
Actually, a better way would be to: If it's occupied, get the driver because it's the driver who incorrectly drove the car. Owner could be someone else. If it's unoccupied get the vehicle owner. That's how I did it when I implemented it into -snipped for irrelevance I'll be doing a Youtube video on the subject-
[QUOTE=Acecool;41619536]( Under restricted use license which has been breached. now they've launched a smear campaign against me after which I told them to remove everything of mine ( He actually promised " If you ever need a place to test your code under a true dedicated server environment feel free to use mine " and he stole my new net system, and a lot of other work saying that I uploaded it so he owns the rights... Which is equal to a web host saying you uploaded your web-site to our server we own the rights... ). ).[/QUOTE]
Completely irrelevant, why are you telling us this?
Sorry, you need to Log In to post a reply to this thread.