[PLEASE HELP] Question regarding file system
#1

Hi again,
Now I'd like to create a vehicle ownership system for my gamemode where every single vehicle has an own configuration file. If somebody buys a vehicle, a new file will be created and named after the player. When the gamemode starts, every car configuration file should be loaded and the cars should be spawned, but I don't know how to do this. Is there any way to load every single file from a directory? Any ideas are welcome.
Reply
#2

Well considering the number of replies, I'd say you should download some vehicle ownership scripts to see how things work
Trust me, that would help a lot.
Reply
#3

And to your question, no you cant read all files in a directory
The best solution is, create a file with all names and vehicles
for example: vehicleid = name => 342 = LTomi
Reply
#4

Quote:
Originally Posted by ♣ Joker ♠
And to your question, no you cant read all files in a directory
The best solution is, create a file with all names and vehicles
for example: vehicleid = name => 342 = LTomi
I have the same system now, but it is bugged sometimes.
Anyways, thanks for help guys.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)