marker = createMarker(8,0,3,\"cylinder\", 1.5, 0, 150, 255, 170)addEventHandler(\"onMarkerHit\", marker,function(hitElement) if not getPedOccupiedVehicle (hitElement) then if(getElementType(hitElement) == \"player\") then triggerClientEvent(hitElement, \"3dImgon\", getRootElement()) end else outputChatBox(\"Please get out from vehicle.\", player, 255, 0, 0) endend)
local white = tocolor(255,255,255,255)local face = dxCreateTexture(\"trollface.png\")function dxDrawImage3D(x,y,z,w,h,m,c,r,...) local lx, ly, lz = x+w, y+h, (z+tonumber(r or 0)) or z return dxDrawMaterialLine3D(x,y,z, lx, ly, lz, m, h, c or white, ...)endfunction draw()dxDrawImage3D(0,0, 20, 20, 20, face, tocolor(255,255,255,255))endfunction trigger()addEventHandler(\"onClientRender\", getRootElement(),draw)endaddEvent(\"3Dimg\",true)addEventHandler(\"3Dimg\",resourceRoot,trigger)