Results 1 to 10 of 10

Thread: Script for checking certain interior houses

  1. #1
    Foreigner corny's Avatar
    Join Date
    Nov 2013
    Location
    Germany
    Posts
    297
    Rep Power
    1

    Script for filtering houses on sacnr.com/houses

    I was looking for good houses and quickly made this script to only show houses with attributes im interested in, maybe it helps you.

    How to use it? Copy it, open http://sacnr.com/houses and press F12, click on console, paste the script and press enter.
    A form is created where you can enter your desired filter values and click 'Go'.
    The script will filter out the houses that match your request and will display them on the map, as well as print a list below the map.
    (you can check the different interior numbers through this url: https://www.sacnr.com/img/int/7.png just replace the number with 0 - 12)

    This is what it looks like:


    You can find the script here:
    https://pastebin.com/raw/qvtivZKg


    The script is minified ('compressed'), so if you wanna check the source you can do that here (It's not exactly beautiful so don't).
    Last edited by corny; 09-12-2019 at 03:18 PM.





  2. #2
    SACNR Developer Markski's Avatar
    Join Date
    Jun 2014
    Location
    Ammu-nation in Argentina
    Posts
    367
    Rep Power
    1
    thanks for this

  3. #3
    big brain corny in da house

    - - - Updated - - -

    This whole thing for just that wtf mad respect, didnt know scripts are that big for a little thing like that :D

  4. #4
    Donating Player Ben18's Avatar
    Join Date
    Oct 2011
    Location
    Italy
    Posts
    3,128
    Rep Power
    1
    Good job bro.

  5. #5
    Foreigner corny's Avatar
    Join Date
    Nov 2013
    Location
    Germany
    Posts
    297
    Rep Power
    1
    Quote Originally Posted by kenjam1 View Post
    big brain corny in da house

    - - - Updated - - -

    This whole thing for just that wtf mad respect, didnt know scripts are that big for a little thing like that :D
    Actually most of it is just copied from the original script that runs when the /houses page is initialized, I just rerun it to exclude houses that dont have the interior i want





  6. #6
    SACNR Veteran Jesse_James's Avatar
    Join Date
    Dec 2011
    Location
    Peckham
    Posts
    1,807
    Rep Power
    1
    Corny give me link

  7. #7
    Foreigner corny's Avatar
    Join Date
    Nov 2013
    Location
    Germany
    Posts
    297
    Rep Power
    1
    UPDATE: I added the possibility to check for several interiors at once and also filter when the owner last visited (in days), how much money is stored in the house
    and where the house is located. Check the OP.





  8. #8
    Donating Player Jacob_DS's Avatar
    Join Date
    Feb 2012
    Location
    Indonesia
    Posts
    37
    Rep Power
    0
    thanks corny


  9. #9
    Foreigner corny's Avatar
    Join Date
    Nov 2013
    Location
    Germany
    Posts
    297
    Rep Power
    1
    UPDATE 2: The script now creates a little 'user interface' with more filter options and also prints the filtered houses below the map (see OP).





  10. #10
    Senior Member Jamie's Avatar
    Join Date
    Jun 2012
    Posts
    1,179
    Rep Power
    1
    Nice work :)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •