Jump to content

Resolvido


Recommended Posts

o problema pode ta no task ou no getControlState. para tentarmos descobrir tentes essas duas formulas, primeiro uma e depois outra.

function updateCamera () 
local weapon = getPedWeapon(getLocalPlayer()) 
if weapon == 43 and getPedTask(getLocalPlayer(), "secondary", 0) == "TASK_SIMPLE_USE_GUN" then 
    dxDrawImage(0, 0, 300, 300, "binoculars.png") 
end 
addEventHandler ( "onClientRender", root, updateCamera ) 

function updateCamera () 
local weapon = getPedWeapon(getLocalPlayer()) 
if weapon == 43 and (getControlState("aim_weapon")) then 
    dxDrawImage(0, 0, 300, 300, "binoculars.png") 
end 
addEventHandler ( "onClientRender", root, updateCamera ) 

obs: o meta.xml ta ok?

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