Git Product home page Git Product logo

esx_property's Introduction

[ESX] Property

Discord - Documentation

Features

  • 95 Premade Properties
  • Dynamic Json Storage
  • Key Management System
  • Garage System
  • Furniture System
    • Can configure everything in the config
    • Editing system
    • Easy to use controls
    • Furniture Stores
    • Keymapped quick access menu
  • Shell / IPL support
  • Police Raiding
  • In-Game property Creator
  • Routing Buckets for instancing
  • Wardrobe functionality
  • OX Inventory Support
  • CCTV Camera System
    • Night Vision
    • Cool HUD overlay
    • ability to zoom in/out
    • Discord webhook support (copies link to clipboard aswell)
  • Admin Menu
    • EVERY part of the property can be changed!
    • Real estate Job Can also access
  • Real Estate Job
  • Built in Discord Logs
  • Highly Configurable

Dependencies

  • es_extended
  • esx_society for Player Management *
  • OX-inventory For Property Stashes *
  • ESX Context
  • ESX Notify
  • ESX Progressbar for Raiding *
  • ESX Datastore for wardrobe *
  • ESX Clotheshop for wardrobe *
  • k4mb1 Starter Shells only for shell use *
  • bob74_ipl only for IPL use *

* = Optional

Create A Property

Getting Shell Offset

  • To get the spawn Offset of the shell, use Loaf`s Offset Finder

  • To Get the Wardrobe or Storage offset, go inside the Property, goto where u want them to be and then use the getoffset command and it will print the offset in F8

Admin Menu

  • As an Admin, use the command, property:admin
  • From There, you can select A property
  • You Can then either Manage, Teleport To Entrance or Delete
  • Allows you to edit all options and evict users
  • Menu Preview
  • Menu Preview 2

Copyright

ESX Property - Properties Made Right!
Copyright (C) 2023 ESX-Framework

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.

esx_property's People

Contributors

arctos2win avatar benzo00 avatar czwader avatar gellipapa avatar isukki avatar itkewai avatar kilaoriginal avatar moskalyka avatar mycroft-studios avatar nemyoriginal avatar nikartikthebear avatar rav3n95 avatar thefantomas avatar yoman1792 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

esx_property's Issues

Can't Give Key

Hi, i have an issue with the give keys system
When i try to give key to another player the list of the neatby player is empty i don't have any error in the console. I see than i'm not alone to have this issue but i don't find solution. Thanks for your help !

[Bug] - esx_property- Issue

Describe the bug
It is impossible to Give a Key outside of a Property.
Logically this isnt the biggest "issue" but.

You still have the Option to give a Key outside. If you press the Button you receive several server-errors.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'any (outside) Position of a House with a second player'
  2. Click on 'Key-Management and Give Key'
  3. See theres nothing happen
  4. See errors serverside (property/server)

Expected behavior
If Possible to Give a Key outside of a Property -> it should work
Otherwise (ist more logically) hide the Option to Give a Key while outside of a property, to avoid server-errors:

[ script:esx_property] SCRIPT ERROR: @esx_property/server/main.lua:762: attempt to index a nil value (field '?')
[ script:esx_property] > TriggerServerCallback (@es_extended/server/functions.lua:167)
[ script:esx_property] > handler (@es_extended/server/common.lua:112)
[ script:es_extended] SCRIPT ERROR: error object is not a string

Screenshots
Not possible atm

Debug Info (please complete the following information):

  • OS: ( Windows)
  • FiveM Artifact latest recommended
  • ESX Version: 1.8.5

Additional Context:
I already tried the Optimizations from Mycroft in his PR`s - but its not a solution. If i apply his code - esx_property is complete broken

ox-Inventory storage sync issue on property deletion

Describe the bug
Currently the PropertyId is the iteration / position of the property within the "properies.json" file.
When removing a property all existing properties greater then the one that has been removed will decrease one in value creating issues with OX_Inventory stashes. In order for OX_inventory stashes to work the Property id needs to be a static id.

To Reproduce

  1. Create two or more properties.
  2. Enter house number two and notice the stash id: (property-2)
  3. Leave house number two and remove house number one using the admin menu.
  4. Enter house number two again and notice the stash id: (property-1)

Expected behavior
When deleting a property all properties with a greater property id should keep their property ID in order not to lose their stashes/storage contents.

Screenshots

Debug Info (please complete the following information):

  • OS: Ubuntu
  • FiveM Artifact latest recommended
  • ESX Version: 1.9.4

Additional information:
Fixed it on our project by adding a static Id for each property.

[Bug] - esx_property -CCTV

Describe the bug
When you use the CCTV in a house you can not rotate the camera to the right, it only works left, up and down

To Reproduce
Steps to reproduce the behavior:

  1. Go to paleto house or any
  2. Click on 'CCTV'
  3. press D
  4. See error

Expected behavior
make the camera rotate to the right

Screenshots
image

Debug Info (please complete the following information):

  • OS: Windows
  • FiveM Artifact: 6163
  • ESX Version: 1.9.0

Additional context
Nothing

esx_property - Use MySQL and only load properties of players registered with the server

MySQL should be used instead of loading and saving resource files, because using resource files is extremely sloppy and very out of date.

Loading every single data for every player ever purchasing a property slows down the server permanently also.
Just loading the data needed would be much smarter. This is a change that should be done to all resources over time.

Also manipulating data while the server is running is impossible using the current save method.

Amélioration

Cela serait sympa de pouvoir prendre des Bay comme dans la vraie vie, par exemple louer avec une signature une maison au lieu de directement l’acheter, par exemple tous les 6h ils doivent payer leur loyer.

Support for inventory ESX (esx_addoninventory)

Hello everyone and sorry for my english, is it possible to have a version with the native inventory of esx_addoninventory and not the ox-inventory only please? Like esx_police we can choose ox-inventory or not (using esx_context)

Friends Inventory

Good afternoon, is it possible to disable friends from having access to our house inventory?

Database Row Check & Creation

I noticed every time my server start's the script esx_property creates a row in my datastore_data table on the database that is empty and null. I tryed and fixed that to check if the row exists then to not create it and create the row only if not exist.

`CreateThread(function()
Wait(3000)
PropertiesRefresh()

MySQL.query("ALTER TABLE `users` ADD COLUMN IF NOT EXISTS `last_property` LONGTEXT NULL", function(result)
    if result.affectedRows > 0 then
        print("[^2INFO^7] Added ^5last_property^7 column to users table")
    end
end)

-- Check if datastore table exists before inserting values.
if MySQL.scalar.await("SELECT EXISTS (SELECT TABLE_NAME FROM information_schema.TABLES WHERE TABLE_TYPE LIKE 'BASE TABLE' AND TABLE_NAME = 'datastore')") > 0 then
    if MySQL.scalar.await("SELECT COUNT(*) FROM `datastore` WHERE name = 'property'") == 0 then
        MySQL.insert("INSERT INTO `datastore` (name, label, shared) VALUES ('property', 'Property', 1)", function(affectedRows)
            if affectedRows > 0 then
                print("[^2INFO^7] Added ^5Property^7 into ^5datastore^7 table")
            end
        end)
    else
        print("[^2INFO^7] Row with name ^5Property^7 already exists in the ^5datastore^7 table")
    end

    if MySQL.scalar.await("SELECT COUNT(*) FROM `datastore_data` WHERE name = 'property'") == 0 then
        MySQL.insert("INSERT INTO `datastore_data` (name, owner, data) VALUES ('property', NULL, '{}')", function(affectedRows)
            if affectedRows > 0 then
                print("[^2INFO^7] Added ^5Property^7 into ^5datastore_data^7 table")
            end
        end)
    else
        print("[^2INFO^7] Row with name ^5Property^7 already exists in the '^5datastore_data' table")
    end
end

end)`

(BUG) give housekey to friend

After i bought a House i wantend to give a key to a friend but every time he says he can´t find any Players nearby, although he is standing next to me.

  • We have no errors in the Server or Client console.

Enhancement: Esx_property(2.0) / Ability to add multiple Storages and Wardrobes

Would be awesome to have the ability to set up multiple Wardrobes and Storages.

As an example if you are in relationship or have multiple room mates
and if there are two visual wardrobes - we can set up two, etc.

For storages i ant to have a "Storage" if you have a visual safe or crate etc.
Aswell as a Storage at the Cooler in the kitchen for food etc.

Problem with property

Hello i have a problem. Since the new mod menu versions came out people keep deleting my properties because the owned properties are in the server folder. Is there any way i could move the property thing to the database so the modders cant keep deleting my players houses ?

[Bug] - esx_property 2.0 - Issue

Describe the bug
When I buy a house with I can open and close it from the outside. If a stranger comes to my house, he can also open and close it from the outside and go in and out as he pleases. Please help !

To Reproduce
Steps to reproduce the behavior:

  1. by porperty
  2. Open and lock outside
  3. anyone can open and lock my house
  4. Anyone can go in and out without having a key

Expected behavior
If I buy a property that only I as the owner can open and close or the one who got a key to go in.

Screenshots
NO ERROR

Debug Info (please complete the following information):

  • OS: (Linux)
  • FiveM Artifact : 6046
  • ESX Version: legacy 1.8.5

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.