renzuzu / renzu_evidence

Fivem - Police Evidence. Fingerprint, Bullet Case, Magazines, Vehicle Fragments/Bullets and more ESX.
GNU General Public License v3.0
47 stars 12 forks source link

no evidence #8

Open LilVegaBoiii opened 1 year ago

LilVegaBoiii commented 1 year ago

am i doing something wrong here? i added the items to ox, turned the target to 'false' cause i dont use any targets, but ill shoot and reload plenty of times (not as a cop), but once i switch to a cop, i cant see anything (even when using a flashlight). is this because im switching from unemployed to police? cause im trying to test the script by myself. also there are no marker for evidence lockers nor the other, not sure if thats how its suppose to be

EduardoJGilA commented 1 year ago

I have the same problem :C i read the code in this part the bullets appears and the point to. Is in the client side.

for type_,data in pairs(evidence or {}) do
                    for k,v in pairs(data) do
                        local indist = #(v.coord - coord) < 1.2
                        if indist and not textui then
                            textui = true
                            lib.showTextUI('[E] - Pick evidence ('..type_..')', {
                                position = "top-right",
                                icon = 'hand',
                                style = {
                                    borderRadius = 0,
                                    backgroundColor = '#48BB78',
                                    color = 'white'
                                }
                            })
                        end
                        if indist and not v.invehicle then
                            if IsControlJustReleased(0,38) then
                                TakeEvidence({info = v, type = type_, index = k})
                                Wait(2000)
                                evidence = GlobalState.Evidence
                            end
                        end
                        if indist then
                            DrawMarker(0,v.coord.x,v.coord.y,z+0.25,0.0,180.0,180.0,0,180.0,180.0,0.35,0.35,0.5,255,55,11,55,false,true,2, nil, nil, false)
                        end
                        if #(v.coord - coord) < 15 then
                            DrawMarker(3,v.coord.x,v.coord.y,z+0.25,0.0,180.0,180.0,0,180.0,180.0,0.15,0.15,0.2,66,135,245,255,true,true,2, nil, nil, false)
                        end
                    end
                end

Evidence is empty. image

renzuzu commented 1 year ago

try the new update.

it seems old logic of player handler does not work properly.

https://github.com/renzuzu/renzu_evidence/commit/2bb79008ca0a2ef154e141f87155db431c7fa99b

LilVegaBoiii commented 1 year ago

did you push an update today? cause i downloaded it yesterday so im pretty sure it is the newest update, i get no errors that im aware of, but it just doesnt show any evidence nor markers

EduardoJGilA commented 1 year ago

I update and it works, but I don't know how to use all at the same time, I have blood, bullets and that but. How can I select all evidence?

LilVegaBoiii commented 1 year ago

okay its working for me, just one question, when i take evidence to the lab it just pulls up the document form, how am i suppose to know the victims name and all that?

LilVegaBoiii commented 1 year ago

not sure i get how this work, but i want to! so i pick up evidence, then what? i use the fingerprintkit, it says "using finger print kit" then nothing happens. im lost lol

LilVegaBoiii commented 1 year ago

??