Jump to content

Which event working for camera ?


Bishop_G

Recommended Posts

Posted

I'm working on creating a mission. In the mission, I will take a photo of a dead ped. But I don't know which event to use for the camera. onPlayerWeaponFire does not work for the camera. Does anyone know which event to use?

Posted

You could try something like this:

local elementFocus=createPed(...)
function setMissionHandler(player)
    bindKey(player,"mouse1","down",function(src)
        if(getPedTarget(src)==elementFocus)then
            outputChatBox("You've taken a photo",src,255,255,0)
        end
    end,player)
end

 

  • Thanks 1

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...