[QB] dc-open-houses

This will give you the ability to create player owned houses for open interiors. This is not a job related resource. This is operated by staff since 9/10 these kind of houses are sold by staff anyways. It is expected that you have the latest version of qb-doorlock.

This uses KvP storage. So if you ever see the folder below don’t delete it. It isn’t server cache, it’s your KvP storage.
image

More features to come but I still want more testing to be done. Every little feedback is welcome.

GitHub

5 Likes

Quick question, Why is it stored in a kvp storage system (on the client)?
Shouldnt the data get stored in the QB database (on the server)…

1 Like

Calling KvP natives on the server side will make it store on the server side. It has nothing to do with the client side.

Ohh, I didnt see the screenshot. My bad.
I forgot we could use KVP on the server. I have only seen it be used for on the client.

Well now you know. The exact reason I made it use KvP too let more people see how it works and maybe jump ship to store simple data instead of using any sort of third party SQL solution.

1 Like

its not letting me create houses

You sure you have admin permission then

sorted lol

1 Like

i have an issue where someone (me during testing) own a normal shell house, and then get assigned an openhouse. if you try to spawn in to your openhouse , it sends you to your other properties shell interior. -not a huge issue

then my next hurdle is feeding Config.OpenHouses[i].garage into MojiaGarages so it syncs with the default phone garage app

Juat one to have, nice release buddy! <3

Well like it states

Important Note:
All garage data of pre-existing homes will not be compatible with this garage, you need to delete those garages and create new ones. When creating a new garage, you need to be on a vehicle.

So I guess you just create a garage with their resource? And your first problem I didn’t really understand to be honest.

1 Like

first problem I didn’t really understand

im not sure if this is just my implementation of your spawn snippet or if others will get this problem so i made a note of it - the problem being when selecting your spawn location in qb-spawn - the spawn process is taking and using the coords for the sql houselocation data and applying it when it should be using the openhouse coords. ie, you spawn at the wrong house.
this is only an issue if the openhouse owner also owns a house created by realestate .

any way to make this work with jerzys_spawn by chance?

Anything is possible with code, you only have to understand how to.

1 Like

I have the latest qb-doorlock, and I followed all the steps, issue is with the door,. it does not open or close…

I added the code to the client file, i do adddoor and newdoor commands but it does not allow me to unlock the door.

Thanks in Advance for the help

where can i get open houses to use this?

is it possible to buy and sell such houses, or only the admin appoints the owner with commands?!

As it says This is not a job related resource. Staff only yes.

Does anyone know why i get this error code even though i did what the instructions say…

@dc-open-houses/server/main.lua:59: attempt to index a nil value (local ‘House’)

Could unfortunately be anything because of weirdness in how houses get deleted or created. Best way would be deleting all the KvP data related to houses and start over again really :confused:.