Jump to content

Warnings.


Recommended Posts

Olá, estou com alguns WARNINGS e queria saber como posso ajeitar.

Bad argument @'processLineOfSight' expectec vector3

Esse ai tá dando em vários scripts quando eu clico em algum menu ou algo do itpo.

Code:

function render()
local screenx, screeny, worldx, worldy, worldz = getCursorPosition()
local px, py, pz = getCameraMatrix()
local hit, x, y, z, elementHit = processLineOfSight ( px, py, pz, worldx, worldy, worldz )
local tx, ty, tz = getElementPosition(localPlayer) 
local rx, ry, rz = getElementPosition(ped1) 
local distancia = getDistanceBetweenPoints3D(tx, ty, tz, rx, ry, rz) 
    if not isEventHandlerAdded("onClientRender", root, armas) then
      if (distancia < 5)  then 
        if hit then
            if elementHit == ped1 then
                triggerServerEvent("armasAbrir", localPlayer)
            end 
	     end  
    end
end
end
addEventHandler("onClientClick", root, render)

 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...