Coder Social home page Coder Social logo

spooner's Introduction

Spooner

Tool for spawning, placing, and removing entities, inspired by Menyoo's Object Spooner.

Features

  • Freecam mode with a variety of options for placing and adjusting entities
  • Searchable lists of peds, vehicles and objects
  • View and set properties of an entity, including attaching entities to one another
  • Save and load sets of entities
  • Saved databases are stored client-side, so you can load them on any server with this resource
  • Import and export sets of entities to share with others or to convert to a permanent map
  • Permissions system for controlling access to individual features

Example

Spooner Example

Requirements

  • uiprompt (only required when using spooner on RedM)

Installation

  1. Place in the resources directory.

  2. Edit fxmanifest.lua and set the gameName variable to either "gta5" (for FiveM) or "rdr3" (for RedM).

  3. Add the following to server.cfg:

    exec @spooner/permissions.cfg
    start spooner
    

    The name of the resource folder must be spooner, otherwise players' saved databases will not be accessible.

  4. Restart the server.

Permissions

The default permissions give full access to the object spooner to all players. You can limit which players can use the spooner or what parts they can access by modifying permissions.cfg.

For example:

add_ace builtin.everyone spooner.view allow
add_ace builtin.everyone spooner.spawn allow
add_ace builtin.everyone spooner.modify.own allow
add_ace builtin.everyone spooner.delete.own allow
add_ace builtin.everyone spooner.properties allow

add_ace group.admin spooner.noEntityLimit allow
add_ace group.admin spooner.modify.other allow
add_ace group.admin spooner.delete.other allow

The above configuration would allow all users to spawn a limited number of entities, and only modify or delete the objects they spawn, while an admin can spawn any number of entities and modify or delete other players' entities.

If you need to change any permissions while the server is running, after adding/removing any spooner-related aces, run spooner_refresh_perms to refresh the permissions on all clients, or restart the resource.

Usage

Cursor colours

Colour Meaning
white No entity selected
green Entity highlighted
blue Entity attached

Controls

Control Function
W/A/S/D Move
Spacebar/Shift Up/Down
E Spawn
Left click Entity highlighted: Attach, Entity attached: Detach
Right click Delete selected entity
C/V Rotate
B Change rotation axis
Q/Z/Arrow keys Adjust selected entity position
I Cycle between controlled mouse adjustment modes
U Toggle whether entities stick to the ground in controlled mouse adjustment modes
7 Turn off mouse adjustment
8 Return to Free mouse adjustment mode
G Clone selected entity
Pg Up/Pg Down/Mouse wheel Change currently selected speed
R Cycle between which speed to change
F Open the Spawn menu
X Open the Database menu
Tab Open the Properties menu for the selected entity
J Open the Save/Load Database menu
Delete Exit Object Spooner

Menus

Spawn menu - F

The Spawn menu provides searchable lists to select an entity to spawn. Left-clicking on an entity sets it as your current spawn.

If an entity is not included in the list, you can still spawn it by entering the full model name in the search field and clicking Spawn By Name.

Right-clicking an entity in any of the spawn menus will add that entity as a favourite. Clickin the favourites button will toggle displaying only your favourited entities.

Database menu - X

The Database menu stores a list of entities. When an entity is spawned, it is automatically added to the current database. Existing entities can be added/removed from the database via the Properties menu.

  • Left-click on an entity to open it in the Properties menu
  • Right-click on an entity to delete it
  • Click Delete All to delete all entities in the database

Properties menu - Tab

The Properties menu lists and allows you to edit properties of an entity.

Save/Load Database menu - J

The Save/Load Database menu allows you to store your current database with a name, and then load all the entities from it again later.

  • To save your current database, enter name in the field and click Save.
  • To load a saved database, left-click on the name of the database.
  • To delete a saved database, right-click on the name of the database.
  • To import a database or export the current database, click Import/Export.

Checking the Load relative to cursor position box will spawn the entities in the selected database relative to the current cursor position, rather than exactly where they were originally placed.

Checking the Replace current DB box will replace your current database with the loaded database, rather than merging the two.

Checking the Save/Load deletions box will save what entities you delete, and delete them again when the database is loaded.

Import/Export menu

The Import/Export menu allows you to import and export databases in a number of different formats:

Format Description Export? Import?
Spooner DB JSON The native format used by the spooner Yes Yes
Map Editor XML XML format used by the Lambdarevolution map editor and the objectloader resource Yes No
Ymap Native map format used by GTA V/RDR2 Yes No
propplacer JSON RedEM:RP propplacer JSON database Yes No
Spooner Backup Backup of all spooner databases Yes Yes

To export, select the desired format and click Export. The output will be displayed in the text box, and you can copy it to save it to an external file.

To import, paste the input into the text box, select the appropriate format, and click Import. Objects imported will be added to your current database.

Entering a URL of a JSON/XML file in the Import from URL field and clicking Import allows you to import from external web sources, such as pastebin.com, without needing to copy and paste. Be sure that the URL points to the raw version of the file when using such services.

spooner's People

Contributors

abdulkadiraktas avatar kibook avatar taymckenzienz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

spooner's Issues

Secondary Database Menu

Hello - I have had an idea for the resource...
Could it possibly have a menu outside of the spooner, ie. using the INSERT key or something similiar, to access the Database without opening the spooner. For example, you could have the rotation and the positioning in there, and it could be changed with the arrow keys instead of just inside the spooner.

This would be useful for:
If in a RP scene, and you need to speak (you cannot use mumble in the spooner), but also change something, you could use this menu.
You don't want to have to open the spooner and do more complicated things (this would most likely take less time to use)

The menu would basically just have to have the things from the normal databsae menu in the spooner, but usable via the arrow keys. Somewhat like what is in Menyoo.

Note:
This should have the enhancement label

Like this:
us4foxV
.

my friend cant see things which i have added

so i followed the steps and first of all id like to say what an amazing script you have created but sadly my friend can only see some of the objects i put in he sees all peds and all animals but is not able to see some objects is this a issue i can sort or can you help thanks i have saved a database and when i click it in the spooner menu everything works for me

I'm trying to use it through Fivem but it's not working

Hello, I'm trying to use it on fivem, but I always get an error, but if there is someone who installs and uses it up to date, can you contact me? My discord username is "ravenv" and I'm throwing the error for people who will help from here.
image

how to saved the map ?

i m trying to export the ymap or xml map so i can use objectloader to remove few things and put others in place but doesnt export anything .

the menu dosent pop up

for fivem im using qb core and spooner dosent seem to work the server says its started and created the environments but when i go to the game and /spooner or try the del key nothing happenns but the command does apear in the comand window but nothing happens please help would appreate it

I can only spawn CERTAIN entitys

I can only spawn like one entity from the objects menu

I've set it up right (I think)
I've even changed the keybinds, but still I can only spawn certain objects.

Incorrect FiveM Controls

Some of the controls from the config are incorrect, and some have no valid control id for that button.
I believe they are all correct up until Config.SaveLoadDbMenuControl.

I end up scrolling down and mouse adjust mode is switching modes, and 7 does not turn mouse adjust off, etc.

Error loading script

Hey there I am receiving an error when loading spooner script - I do have UIPROMPT installed as directed and I am being thrown the following error with installed as seen also.

Any help would be amazing thank you!
uiprompt

SUSSGESTION

not a major, i kn your super busy, and it may be hard asf, but. saving ,aps with vehicles, will also save / load all the cars mods.

Entity preview

Hi there !
I was waiting server side spooner for a long time ) Thanks for your job !
Can you please add Entity Preview before spawn it, like in Menyoo ?

Thanks !

Huge lag

i have a huge lag when i start spooner....any command I use takes a very long time to execute....
my PC: i7 9700 with 20GB ram and GPU card is GTX1070 8gb

anyone can help?

Doors are falling trough Map

Hi Guys,

when i add some doors and edit them to be lock/unlockable they will fall trough the world.
Is there any specific option to fix them?

when i turn Collission off i can walk trough them :D
Didn't get em work as normal door.

FiveM: Spawned gangs/faction members hostile to each other?

Spooner is a great tool to set up scenarios and overall just have fun. It's great.

I have ran into an issue with Spooner for FiveM.

Whenever I spawn members of the same gang in Spooner, they are hostile to each other. If I shoot at them, they will begin shooting at me first and then turn on each other mid-gunfight. I am not sure why this is the case as in RedM members of the same faction will not shoot at each other.

Is there anyway to fix this or workaround this issue?

I am struggling to get spooner to work on rdr3

I am just struggling with getting it to work on my server When I start my server I get this

[ citizen-server-impl] Started resource redm-uiprompt
[ c-resources-core] Could not find dependency uiprompt for resource spooner.
[ citizen-server-impl] Couldn't start resource spooner.

where exactly do I put this at in the server.cfg

exec @spooner/permissions.cfg
start spooner

I am struggling on where I put this. I'm also new at this so I'm trying to learn as best as I can.

Light options changes all entities

I am really enjoying using the spooner. Thank you for all your hard work.

There is one frustrating issue in RedM when using the spooner and updating the light options so that the entity will change color, it changed the color for all entities. This means you can not have one light bulb being red and another light bulb being green. They will all be the same color.

Also, when the ymap is created, these lighting changes dont carry over. So if you turn a light bulb red, it will not be read when you download it into the ymap and import into the game.

Is this something you would be willing to fix? This would be amazing. It would allow for there to be all kinds of different colors and lighting in the game when creating to maps.

Spooner doesn't work with FiveM

Well for one the uiprompt doesn't even work for FiveM please fix this or add me on discord Severingcastle8#8743 I need this to work for FiveM please.

Help Please

Hello, I sometimes have the problem that, for example, the ped simply follows others than me, even though I spawn, do I have to do something there? or is that just a coincidence?

Control Help

using ESX latest version at the time of writing this

cant rotate
cant delete
anything i spawn in with a bunch of other controls not working as well i looked at previous responses with fivem button controls and even those arent working

really need this resource as it will help add gang spawn groups on my fivem liberty city server

FiveM: Scenarios keep restarting?

Interesting enough, on RedM the scenarios seem to work and both players/AI in scenarios will not constantly restart it.

In FiveM however, this does not seem to be the case. It will constantly restart the scenario for the AI and players. Scenarios with props will keep seeing the props endlessly respawning and dropping on the ground.

Any ideas or workarounds?

cant access the saved database for fivem

hey there ive downloaded your spooner mod and even tho ive followed the instructions i still cant open saved database using the key j nothing comes up please help i useing it for fivem the resource is called spooner and still nothing

[QUESTION] Doors

Is there way to make doors can be opened? Switch some options or something?

Position and Rotation numbers

I used Menyoo to create emotes with props attach to it, and the numbers for the prop rotation and position were accurate but when I use the spooner numbers is not, any help with that

What?!

You tell us in the readme that we need a requirement but that one seems RedM only, so now what? Can you be more clear please!

I can't open the menu

image
image

I prepared the menu according to the tutorial, but anyway, when I write / spooner in the game, nothing happens and I can spam as much as I want and anyway, nothing happens.

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.