Guten Abend,
Ich wollte mal fragen wie ich ein bild anzeigen lassen kann z.b (eXo,Skyline etc. pp.)
Vandam Hat mir ein Code geschickt doch komme nicht ganz weiter
Code
local progress=0
function Render()
if progress<1 then
progress=progress+0.01
end
local moveX,moveY,moveZ=interpolateBetween (0,-500,0, 500,500,0 progress, "InOutBack")
dxDrawImage(moveX,moveY,500,500,"images/logo.png")
end
addEventHandler("onClientResourceStart",getRootElement(),Render)
Code
addEventHandler ("onResourceStart", getRootElement(),
function()
setTimer (moneyZoneTimerFunction, 2500, 0)
local allGreenzones = getElementsByType ("radararea")
for i,v in ipairs (allGreenzones) do
local r,g,b,a = getRadarAreaColor (v)
if (r == 0) and (g == 255) and (b == 0) and (a == 127) then
local x,y = getElementPosition (v)
local sx,sy = getRadarAreaSize (v)
local col = createColCuboid (x,y, -50, sx,sy, 7500)
setElementID (col, "greenzoneColshape")
end
end
end)
addEventHandler ("onColShapeHit", getRootElement(),
function(hitElement, matchingDimension)
if (getElementType (hitElement) == "player") and (getElementID (source) == "greenzoneColshape") then
outputChatBox ("You entered the greenzone", hitElement, 255, 0, 0, false)
triggerClientEvent (hitElement, "enableGodMode", hitElement)
end
if (source == moneyZoneCol) and (getElementType (hitElement) == "vehicle") then
setElementVelocity (hitElement, 0, 0, 0)
setElementPosition (hitElement, 1579.9382324219, 1579.9382324219, 1579.9382324219)
setVehicleRotation (hitElement, 0,0,270)
if (getVehicleOccupant (hitElement, 0)) then
outputChatBox ("You can't enter the moneyzone with your car!", getVehicleOccupant (hitElement, 0), 255, 0, 0, false)
end
end
end)
addEventHandler ("onColShapeLeave", getRootElement(),
function(leaveElement, matchingDimension)
if (getElementType (leaveElement) == "player") and (getElementID (source) == "greenzoneColshape") then
outputChatBox ("You left the greenzone", leaveElement, 255, 0, 0, false)
triggerClientEvent (leaveElement, "disableGodMode", leaveElement)
end
end)
Alles anzeigen