Coder Social home page Coder Social logo

esx_ambulancejob's Issues

Not working distress signal

I try to fix the distress signals but when i try to send signal with the default phone that was used for the resource still the distress signals not working no errors just it didn't work

Copyright issue

Hey :)

This code here looks awfully familiar:
https://github.com/esx-framework/esx_ambulancejob/blob/main/client/main.lua#L387-L481

I did not remember giving anyone permission to use this anywhere. The original code can be found here: https://github.com/Kiminaze/DeathCam

I have no clue how long this has been in this resource but according to the commit history at least since January of 2023. At that point, my Deathcam did not even include a License. And a few months after that I added one that does still not permit anyone from distributing it in other releases. No license = you can fork it and look at it, nothing else.

I am willing to talk about it before I take any other action since this is a major release in the community.

Kind regards, Kiminaze

Your vehicle is not stored in the garage.

vehicle.lua

I've edited lines 61-65 I tried printing it and it seems to use boolean, not number
So I added v.stored == true/false to it and it worked fine. :

if v.stored == 1 or v.stored == true then
								label = label .. ('<span style="color:green;">%s</span>'):format(TranslateCap('garage_stored'))
							elseif v.stored == 0 or v.stored == false then
								label = label .. ('<span style="color:darkred;">%s</span>'):format(TranslateCap('garage_notstored'))
							end

client.zip

setDeathStatus Problem

RegisterNetEvent('esx_ambulancejob:setDeathStatus')
AddEventHandler('esx_ambulancejob:setDeathStatus', function(isDead)
	local xPlayer = ESX.GetPlayerFromId(source)

	if type(isDead) == 'boolean' then
		MySQL.update('UPDATE users SET is_dead = ? WHERE identifier = ?', { isDead, xPlayer.identifier })
		isDeadState(source, isDead)
			
		if not isDead then
			local Ambulance = ESX.GetExtendedPlayers("job", "ambulance")
			for _, xPlayer in pairs(Ambulance) do
				xPlayer.triggerEvent('esx_ambulancejob:PlayerNotDead', source)
			end
		end
	end

end)

Txadmin give errors in line 368. i checked in my mysql database if the row is_dead there, it is. And i dont know what to do...

SCRIPT ERROR: @esx_ambulancejob/server/main.lua:368: attempt to index a nil value (local 'xPlayer')
That the error. Its since i updated the server artifacts to fx: b7479

I use visn_are but they say from thier side is all fine..

"Your vehicle is not stored in the garage"

Hey, as soon as I buy an ambulance I cant spawn it because its supposedly not in the garage. In owned_vehicles (in the database) its registered that I bought an ambulance as an medic.
Could you please help me?

Revive after Reconnect

Hey Guys, we're using the latest version of ESX_AmbulanceJob and we have the problem, that when a User Disconnects and reconnects, the Script doesn't recognize the Player as dead and we can't revive them via Ambulance Revive job

Death timer not showing

As sayed in the title i have a problem with my death timer.
my version: 1.2.0
i was wondering if you could help me

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.