Jump to content

Ajutor resursa


Recommended Posts

Asta e doar un exemplu NU va merge la ce iti trebuie tie, pentru ce vrei tu mai ai nevoie de urmatoarele functii:

getCameraMatrix

getPedBonePosition

getScreenFromWorldPosition

isLineOfSightClear

dxDrawImage

Client:

local width,height = guiGetScreenSize() 
  
function dxDrawOnDuty() 
    dxDrawImage ( screenWidth - x, y, width, height, 'image.png') 
end 
addEvent("dxDrawOnDuty", true) 
addEventHandler("dxDrawOnDuty", dxDrawOnDuty) 

Server:

function OnDuty(player) 
    if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup("Admin")) then 
        triggerClientEvent(player,"dxDrawOnDuty", player) 
    end 
end 
addCommandHandler("onduty", OnDuty) 

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