I have a house system working with y_ini, i need to save the bought vehicles into the same house file that the player owned.
Currently there is only one tag named data to hold the house data in the house file like:
My question is, if i add another tag after the house data called [vehicles] like:
How would i load those 2 tags separately? I mean the first tag [data] is used to load the houses in OnGameModeInit, and i need the second tag [vehicles] to be loaded in OnPlayerConnect callback. But i have no idea how to do it. Can someone explain me? The saving system works fine but i got problem while loading them.
I would make separate files for the vehicles but since i already have other files i.e bank, businesses, and so on, i thought of adding the vehicles inside the house file to reduce the gamemode size.
Currently there is only one tag named data to hold the house data in the house file like:
Code:
[data]
HouseName = {FFFFFF}House of Oxide
HouseX = 1457.890014
HouseY = 1013.313598
HouseZ = 10.820310
HouseLevel = 1 etc...
My question is, if i add another tag after the house data called [vehicles] like:
Code:
[data]
HouseName = {FFFFFF}House of Oxide
HouseX = 1457.890014
HouseY = 1013.313598
HouseZ = 10.820310
HouseLevel = 1 etc...
[vehicles]
Model = 520
Paint = 1
Nitro = 1
Color1 = 21
color2 = 55 etc...
How would i load those 2 tags separately? I mean the first tag [data] is used to load the houses in OnGameModeInit, and i need the second tag [vehicles] to be loaded in OnPlayerConnect callback. But i have no idea how to do it. Can someone explain me? The saving system works fine but i got problem while loading them.
I would make separate files for the vehicles but since i already have other files i.e bank, businesses, and so on, i thought of adding the vehicles inside the house file to reduce the gamemode size.
Aucun commentaire:
Enregistrer un commentaire