qbcore-framework / qb-diving Goto Github PK
View Code? Open in Web Editor NEWDiving Script For QB-Core
License: GNU General Public License v3.0
Diving Script For QB-Core
License: GNU General Public License v3.0
Is your feature request related to a problem? Please describe.
Describe the feature you'd like
Describe alternatives you've considered
N/A
Additional context
Here is latest script and how it looks to players trying to find where to dig for stuff: https://i.imgur.com/ugBWNg1.jpeg it's almost impossible without debug on.
if I sell a boat far from all the others it does not spawn until I first go close to the group of other boats in the default port.
add LocalPlayer.state:set("inv_busy" when sell coral items
i can open inv and drop item
After this resource was updated its impossible to find the location of the coral without scanning the bottom of the ocean for 20min.
I think adding back the small question marks would make this script better again
Thankyou
Describe the bug
Before the most recent version (as ov 17th June) the tank seems to last a longer time, at the moment we can only do one dive for a single coral before it tells us we have no air? Used to be able to at least do one entire zone before it ran out.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I guess more air? I did read that tank time is limited in gtav so you can't change it potentially?
Questions (please complete the following information):
qb-
to something custom? Nopeglovbox and trunk boats bought from the boat shop are not save in the database.
So I rent a boat, and when i'm finished I can't give it back or store it so it has to be left out
Also when I buy boats from the dockyard , it takes the money from teh account but I can't store them
When selling the "dendrogyra_coral" or "antipatharia_coral" If you sell 1, you get a random price whatever you made it into. It doesn't matter If you have 10 "antipatharia_coral" you get 1 random price for 10 pieces and I don't think that'r right. Should give you more money.
[2] = {
item = "antipatharia_coral",
maxAmount = 100,
price = math.random(100, 150),
}
Change cash being an item
Describe the bug
When a player have a diving suit on the prop blocks bullets from hitting the players hitbox and in return gives the player "godmode" in the head and chest.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The player takes damage
Fix
A possible fix to this would be to use the rebreather mask. This is a clothing item and will not give the player "godmode"
How to determine the number of minutes under water?
Is it possible to add a feature?
To determine the number of minutes the player was under water?
Describe the bug
Police call is set to leo and not the job police
To Reproduce
Steps to reproduce the behavior:
RegisterNetEvent('qb-diving:server:CallCops', function(coords)
for _, Player in pairs(QBCore.Functions.GetQBPlayers()) do
if Player then
if Player.PlayerData.job.type == "leo" and Player.PlayerData.job.onduty then ---> if Player.PlayerData.job.type == "police" and Player.PlayerData.job.onduty then
local msg = Lang:t("info.cop_msg")
TriggerClientEvent('qb-diving:client:CallCops', Player.PlayerData.source, coords, msg)
local alertData = {
title = Lang:t("info.cop_title"),
coords = coords,
description = msg
}
TriggerClientEvent("qb-phone:client:addPoliceAlert", -1, alertData)
end
end
end
end)
pls check this pls
Seems the native for IsPedInAnySub(Ped) needs to be added to allow for the DLC submarines to be stored when purchased.
I tried adding addittional locals for local inSub = IsPedInAnySub(Ped) and adding it where inBoat was but still cannot store so not too sure why that would be.
I'd also suggest with the qb-garages consolidation that garages be split out of qb-diving to be handled there too.
The old diving doesnt work with the update, it just gives the error of "you need an oxygen tube"
Describe the bug
Checking if this should be missing.
Just testing a PR and noticed on sell that I was getting an error about comparing the price to nil.
Looking at the config it seems to be missing the min/max on the config, not sure if this is ok to be missing or such?
Line 279 in 7392beb
The depot currently dupes boats that are outside of the boat garage ; take out a boat, leave it in the open, go into the depot and it will dupe it instead of removing the other instance like the car depot would do.
I get this error with a brank new qb-diving repo which has not been edited
i found a bug inside qb-diving, when you wear it you can't take headshot damage and backside
the script owner should fix it by:
SetEntityCollision(MaskObject, false, false)
put under this line MaskObject = CreateObject(maskModel, 1.0, 1.0, 1.0, 1, 1, 0)
and SetEntityCollision(TankObject, false, false)
under this line TankObject = CreateObject(tankModel, 1.0, 1.0, 1.0, 1, 1, 0)
wearing a Diving Suit is exploitable as it makes you immune to damage by bullets
Can't store boat in boathouse
The mysql database doesn't change
When buying a marine boat, inquire about the owner of the boat
It appears with a random name, not my name, for example
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.