Hey guys,
I use c# with the bridge.
Is there any possibility to get an identifier from an Entity (Client, Vehicle)?.
I like to manage additional data for clients (level, money, ...) which are stored in a DB. Just like that i like to manage additional data for vehicles later.
Once an event is triggerd by a client, i like to manipulate the additional data. So i have to create a connection from the Client object - which i got from the event - and my User object. (Currently I'm using a dictionarylist with the client.Name as Key an my User object as Value and everytime i like to manipulate the data, i have to search for the client.Name as key in the List to get the User object). But if i think about the vehicles, I don't find any identifier.
When I remember SA:MP, everything had an identifier, which has never change since the creation.
What i've already tried:
I tried to create a sub class user with the Client as base. So the User has got all the properties from its base class and I can add additional properties. The problem i have related to the constructor of the base class.