Giter Club home page Giter Club logo

dolu_tool's Introduction

Dolu Tool

This is a FiveM resource providing a bunch of features to help you developping your scripts and mods. Any contribution will be apreciated!

Installation

Please read the Documentation and follow the install steps.

Features

  • Locale system from ox_lib
  • Automaticly check for update and display it in header (see last picture)
  • Target objects to copy coords, delete or move them using the gizmo (requires ox_target)
  • Simple permission system (check config.lua)
  • Home:
    • Display coords
    • Copy coords
    • Set coords
    • Save coords as location
    • Go to the last location
    • Display basic interior informations
    • Quick actions buttons
  • World:
    • Set time
    • Freeze time
    • Set weather
    • Freeze weather
  • Interior (MLO):
    • Display interior informations
    • Portals debugging
    • Check portal flags with descriptions
    • Set portal flags by checking boxes
    • Room from/to infos
  • Object spawner:
    • Spawn objects and move them using a nice Gizmo
    • Keep all spawned objects in a list
    • Various options available for spawned entities
  • Locations:
    • Browse to all vanilla interiors
    • Copy coords/teleport
    • Create custom locations, saved in server cache (kvp)
    • Delete/Rename custom locations
    • Filter search to show/hide custom/vanilla locations
  • Peds:
    • Browse to all vanilla peds
    • Preview images
    • Set peds
    • Copy name/hash
  • Vehicles:
    • Browse to all vanilla vehicles
    • Preview images
    • Spawn vehicle
    • Copy name/hash
  • Weapons:
    • Browse to all vanilla weapons
    • Preview images
    • Give weapons (with ox_inventory support)
    • Copy name/hash
  • Audio:
    • Draw near vanilla Static Emitters
    • Set draw distance
    • Get info from closest vanilla Static Emitter
    • Set radio station, play or stop closest vanilla Static Emitter

Preview

1045_18-01-23_02-27 1046_18-01-23_02-27 1055_18-01-23_02-49 1047_18-01-23_02-29 1049_18-01-23_02-30 1050_18-01-23_02-31 1051_18-01-23_02-32 1052_18-01-23_02-32 1053_18-01-23_02-33 1054_18-01-23_02-33 1054_18-01-23_02-33

Credits

This tool could not exists without help of

dolu_tool's People

Contributors

aik-10 avatar ajaxon1 avatar anthonytcs avatar dolutattoo avatar dxvdc avatar dyros3 avatar geden420 avatar github-actions[bot] avatar hazeworksonfivemserver avatar krzysiula3000 avatar moozdzn avatar nietthijmen avatar p1nkboys avatar s33g avatar thekepaag avatar tiwabs avatar yiruzu 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  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  avatar  avatar  avatar  avatar

dolu_tool's Issues

[Bug] Weather doesnt change

The weather option doesnt change.

If i e.g choose Blizzard - nothing happens.

If i "freeze" the weather, nothing happens

Quality of life improvement

Could you please make typing freeze keyboard actions? For example when i want to spawn a prop by name i accidentally open half my menus, like vMenu etc. Again, not really a bug, but it's insanely frustrating

[Bug] Unexpected end of JSON

Describe the bug
Im not sure if its a bug but I keep getting this error as below after a few times of restarting my server.

"SyntaxError: Unexpected end of JSON input (@dolu_tool/web/build/index.html:1)"

image

For the first few times Im able to open the menu, after a few server restart, the error will show up.

Screenshots
image

[Suggestion] Few Ideas from me ;)

Hey!

  • Add a Miscs tab with following:

    • Disable cops chasin you
    • Set default default ped on spawn
    • Set default weapons on spawn
    • Customize weapons
  • Add option to controle speed in noclip, make it that you can slower faster etc..

For now i got this! :) very nice tool I was usin it long way before this version, happy to see how it will go.

loading script causes major errors

I've got ox-lib installed for other scripts and updated
both scripts are ensured pressing f3 to call script produces these errors.

[ 295875] [b2699_GTAProce] MainThrd/ Error loading script server/main.lua in resource dolu_tool: @dolu_tool/server/main.lua:131: attempt to index a nil value (global 'Shared')
[ 295875] [b2699_GTAProce] MainThrd/ stack traceback:
[ 295875] [b2699_GTAProce] MainThrd/ @dolu_tool/server/main.lua:131: in main chunk
[ 295875] [b2699_GTAProce] MainThrd/ Failed to load script server/main.lua.
[ 295875] [b2699_GTAProce] MainThrd/ Started resource dolu_tool
[ 295875] [b2699_GTAProce] MainThrd/
[ 295890] [b2699_GTAProce] MainThrd/ OnConnectionProgress: Downloading content manifest...
[ 295890] [b2699_GTAProce] UV loop: httpClient/ Required resources: dolu_tool
[ 295921] [b2699_GTAProce] MainThrd/ Creating script environments for dolu_tool
[ 295921] [b2699_GTAProce] MainThrd/ Error loading script client/commands.lua in resource dolu_tool: @dolu_tool/client/commands.lua:6: attempt to call a nil value (global 'locale')
[ 295921] [b2699_GTAProce] MainThrd/ stack traceback:
[ 295921] [b2699_GTAProce] MainThrd/ @dolu_tool/client/commands.lua:6: in main chunk
[ 295921] [b2699_GTAProce] MainThrd/ Failed to load script client/commands.lua.
[ 295937] [b2699_GTAProce] MainThrd/ ^1SCRIPT ERROR: @dolu_tool/client/controls.lua:6: attempt to index a nil value (global 'Client')^7
[ 295937] [b2699_GTAProce] MainThrd/ ^3> fn^7 (^5@dolu_tool/client/controls.lua^7:6)
[ 295937] [b2699_GTAProce] MainThrd/ ^1SCRIPT ERROR: @dolu_tool/client/controls.lua:53: attempt to index a nil value (global 'Client')^7
[ 295937] [b2699_GTAProce] MainThrd/ ^3> fn^7 (^5@dolu_tool/client/controls.lua^7:53)
[ 295937] [b2699_GTAProce] MainThrd/ ^1SCRIPT ERROR: @dolu_tool/client/threads.lua:9: attempt to index a nil value (global 'Client')^7
[ 295937] [b2699_GTAProce] MainThrd/ ^3> fn^7 (^5@dolu_tool/client/threads.lua^7:9)
[ 295937] [b2699_GTAProce] MainThrd/ ^1SCRIPT ERROR: @dolu_tool/client/threads.lua:25: attempt to index a nil value (global 'Client')^7
[ 295937] [b2699_GTAProce] MainThrd/ ^3> fn^7 (^5@dolu_tool/client/threads.lua^7:25)
[ 295937] [b2699_GTAProce] MainThrd/ ^1SCRIPT ERROR: @dolu_tool/client/threads.lua:41: attempt to index a nil value (global 'Client')^7
[ 295937] [b2699_GTAProce] MainThrd/ ^3> fn^7 (^5@dolu_tool/client/threads.lua^7:41)
[ 295937] [b2699_GTAProce] MainThrd/ ^1SCRIPT ERROR: @dolu_tool/client/threads.lua:66: attempt to index a nil value (global 'Client')^7
[ 295937] [b2699_GTAProce] MainThrd/ ^3> fn^7 (^5@dolu_tool/client/threads.lua^7:66)
[ 295937] [b2699_GTAProce] MainThrd/ ^1SCRIPT ERROR: @dolu_tool/client/threads.lua:94: attempt to index a nil value (global 'Client')^7
[ 295937] [b2699_GTAProce] MainThrd/ ^3> fn^7 (^5@dolu_tool/client/threads.lua^7:94)
[ 295937] [b2699_GTAProce] MainThrd/ OnConnectionProgress: Mounted dolu_tool (1 of 1)
[ 296453] [b2699_GTAProce] MainThrd/ ^1SCRIPT ERROR: @dolu_tool/client/threads.lua:3: attempt to index a nil value (global 'Client')^7
[ 296453] [b2699_GTAProce] MainThrd/ ^3> fn^7 (^5@dolu_tool/client/threads.lua^7:3)

[Bug] A delay in the permission function causes the menu to break

Describe the bug
Currently, the permission system is client-side. However, some information which I want to use for permissions is kept server-side.

I created a simple server-side callback dolu_tool:isAuthorized which returns true or false. I'm trying to use this callback in the permission function, but the menu breaks when using it.

To Reproduce
Steps to reproduce the behavior:

  1. Create a server-side callback:
lib.callback.register('dolu_tool:isAuthorized', function(source)
    return true
end)
  1. Use the server-side callback in the permission system.
Config.perimission =  function(type)
    return lib.callback.await('dolu_tool:isAuthorized', false)
end
  1. Try to open the mapping tool.
  2. The opened mapping menu is bugged and there's an error in the F8 console: Uncaught (in promise) SyntaxError: Unexpected end of JSON input (@dolu_tool/web/build/index.html:1).

Expected behavior
The menu should open correctly and not be bugged.

Screenshots
Screenshot of the error and you can see the menu is bugged (no text in the boxes).
image

Additional context
Seems that if you don't return the permission instantly, it breaks. You can also do Wait(100) before returning true/false and the same problem will happen.

I sometimes get the same error & bug totally randomly as well, without any changes to the script - similarly to #14

It seems if something is not loaded quick enough, the F8 HTML error appears and the menu gets bugged.

Disappearing text

I downloaded ox_lib as well as ox_target, set up everything according to the documentations, however when using 4.2.0 version of the tool, the text just disappears whenever i load into the game, in order to see it again i have to restart the resource
image

[Suggestion] Rotation button

Is your feature request related to a problem? Please describe.
Would be greate a get rotation button right beside the position button.

[Suggestion] Props finding

Is your feature request related to a problem? Please describe.
Feature request since I don't find it on the menu.

Describe the solution you'd like
Basically when we use dolu_tool there is no functions to find a props name. We can spawn some but not copy the name. So for example I'm currently in a MLO. I have an object I want to remove but I can't since I don't know the name. I use the menu to find the specific props. Once it's done the name is coppied to clipboard and then I can remove it easily.

Additional context
It will allow mappings to get easily edited.

[Suggestion] Camera Params

Is your feature request related to a problem? Please describe.
There is currently no way to obtain camera coordinates in the menu. This limitation makes it difficult to create cameras with custom effects for my scripts.

Describe the solution you'd like
Please add a simple and accessible method to obtain camera coordinates and parameters.

Additional context
This addition could be extended as a separate module, enabling the creation of custom cinematics and more.

Noclipping whilst in a car

Currently it's not possible (or it's a bug idk), nonetheless it would be really handy if it was a thing, so here i am with my request, have a nice day

[Suggestion] Item Attachment Offset Finder

Is your feature request related to a problem? Please describe.
Finding offsets for weapon/item attachments has always been a pain and a bunch of trial and error. Dolu tool's very clean interface for modifying objects in the game world would be incredible for finding offsets for weapon/item attachments on peds.

Describe the solution you'd like
A menu tab similar to the object spawner that allows you to attach items to the specified bone on the ped and control position/rotation via input fields/sliders and then attach to the ped to allow for testing while walking/driving etc. You can then copy the offsets and it will provide the boneindex and two vector3 for putting into an item attachment script.

Additional context
If possible also attaching weapons/items to other peds/vehicles would be neat but that would be kind of a bonus feature.

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.